From: "John Bokma" <j...@castleamber.com>

"Octavian Rasnita" <orasn...@gmail.com> writes:

From: "Daniel Kluev" <dan.kl...@gmail.com>
a = [1,2]
dict([a])

Yes, but

d = dict([a])

is not so nice as

$d = @a;

That will give you the number of elements in @a. What you (probably)
mean is %hash = @array;


Of course. Thank you for correction.

Octavian

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to