Create datetime instance using a tuple.

John Machin sjmachin at lexicon.net
Thu Jul 7 05:52:21 EDT 2005


Negroup wrote:
>>Use:
>>dt =3D datetime(*t)
>>
> 
> 
> Thanks for the quick reply. 
> I can't find any doc about '*' used in this context. Have you some url
> or suggestion for which terms search in Google?

http://www.python.org/doc/2.4.1/tut/tut.html

Then read this section

4.7.4 Unpacking Argument Lists

Then read all the other sections :-)



More information about the Python-list mailing list