a = b = 1 just syntactic sugar?
Lulu of the Lotus-Eaters
mertz at gnosis.cx
Tue Jun 3 19:27:35 EDT 2003
"Fredrik Lundh" <fredrik at pythonware.com> wrote previously:
|>>> a = 10
|>>> c = [b for b in [a+a]][0] + a
|>>> a
|10
|>>> b
|20
|>>> c
|30
Sick puppy!
...especially since I'll now probably feel compelled to do that in code.
Yours, Lulu...
--
Keeping medicines from the bloodstreams of the sick; food from the bellies
of the hungry; books from the hands of the uneducated; technology from the
underdeveloped; and putting advocates of freedom in prisons. Intellectual
property is to the 21st century what the slave trade was to the 16th.
More information about the Python-list
mailing list