Tuesday, December 28, 2010

nested sequence unpacking

>>> a,(b,c) = 1,(2,3)
>>> a
1
>>> b
2
>>> c
3

No comments:

Post a Comment