converting from perl: variable sized unpack
jkraska1 at san.rr.com
Mon Jul 16 18:09:28 CEST 2001
>The Python equivalent to the Ruby trick really isn't that much longer, and
>to my mind has the advantage of showing more clearly the programmer's
> (a, b), c = sequence[:2], sequence[2:]
If y'll forgive an AOL-style "me too" post, I just have to say that your explicit
assignment is far superior to the obfuscating syntactic sugar it replaces.
Python: The Right Combination of Power and Elegance.
More information about the Python-list