anonymous assignment

Scott David Daniels Scott.Daniels at Acm.Org
Mon May 12 22:47:28 EDT 2008


Yves Dorfsman wrote:
> ... Sorry this was a typo (again :-), I meant:
> d = time.local()
>   y = d[0]
>   d = d[2]
Then:
     y, d = list(time.localtime())[:4:2]

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list