Daniel Wong wrote:
Are there plans for introducing syntax like this:
(a, (b[2], c)) = ('big' ('red', 'dog'))
I think you'll find Guido has made another trip
in the time machine for this one:
Python 2.3 (#1, Aug 5 2003, 15:52:30)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> b = [0,1,2]
>>> (a, (b[2], c)) = ('big', ('red', 'dog'))
>>> a
'big'
>>> b
[0, 1, 'red']
>>> c
'dog'
>>>
--
Greg
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com