Re: anonymous assignment
Gabriel Genellina wrote:
>
No need of 2.6 - the above code works since Python 2.2 at least:
>
Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] on win32
Type "help", "copyright" , "credits" or "license" for more information.
<type 'time.struct_ti me'>
2008
>
(but struct_time objects were printed as regular tuples)
>
And not well documented !
Nice one ! Thanks.
Gabriel Genellina wrote:
>Uses Python 2.6! ;)
>>
>>
No need of 2.6 - the above code works since Python 2.2 at least:
>
Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] on win32
Type "help", "copyright" , "credits" or "license" for more information.
>>>import time
>>>t=time.local time()
>>>type(t)
>>>t=time.local time()
>>>type(t)
>>>t.tm_year
>
(but struct_time objects were printed as regular tuples)
>
Nice one ! Thanks.
Comment