s = sha1(random()).hexdigest()

Paul Rubin http
Fri Jan 16 20:03:32 EST 2009


gert <gert.cuykens at gmail.com> writes:
> Is this the new way to create a list in Python3.0 ?
> s=('test',)

That is a 1-tuple in both 2.x and 3.0.  For a list, you'd say   

   s = ['test']



More information about the Python-list mailing list