why no ++?
rumjuggler at cryptarchy.org
Sat Aug 11 23:47:25 CEST 2001
On Sat, 11 Aug 2001 23:37:52 +0100, Stefan Schwarzer <s.schwarzer at ndh.net>
>Alex Martelli schrieb:
>> "Christopher A. Craig" <com-nospam at ccraig.org> wrote in message
>> news:mailman.997122491.16083.python-list at python.org...
>> > I had always thought the reason for not having i++ was because, in
>> > general, each line of Python code can have at most one lvalue.
>> I'm not sure what you mean, since 'lvalue' is not a Python
>> concept, but...:
>Nice, but seems like "obfuscated Python" to me ;-)
>('wow', 'w', 'o', 'w', 'wow')
>I haven't yet figured out how it works. Could you please add parantheses to
>the above expression or clarify otherwise how it works?
It's the same as
>>> a = (b,c,d) = e = 'wow'
Barnabas T. Rumjuggler
No man can run so fast that he can escape his own past's projectile vomit.
More information about the Python-list