anonymous assignment
Richard G Riley
rileyrgdev at gmail.com
Mon May 12 09:10:44 EDT 2008
Yves Dorfsman <yves at zioup.com> writes:
> D'Arcy J.M. Cain wrote:
>> On Mon, 12 May 2008 02:28:13 GMT
>> Yves Dorfsman <yves at zioup.com> wrote:
>>> particular case, there's got to be a better way than:
>>>
>>> d = time.local()
>>> y = d[0]
>>> d = d[1]
>>
>> Like this?
>>
>> y, d = time.local()[:2]
>
> Sorry this was a typo (again :-), I meant:
>
> d = time.local()
> y = d[0]
> d = d[2]
>
> Yves.
> http://www.SollerS.ca
or .localtime()? or is this local() specific to a different python
version?
More information about the Python-list
mailing list