anonymous assignment

Yves Dorfsman yves at zioup.com
Mon May 12 23:23:30 EDT 2008


Scott David Daniels wrote:
> 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]
> 

What is this ?
Could you point me to a document on this syntax ?

I've tried it, it works, but I don't understand how.


Thanks.

Yves.



More information about the Python-list mailing list