[Python-3000] PEP 3132: Extended Iterable Unpacking (original) (raw)
Georg Brandl g.brandl at gmx.net
Wed May 2 09:02:18 CEST 2007
- Previous message: [Python-3000] PEP 3132: Extended Iterable Unpacking
- Next message: [Python-3000] PEP 3132: Extended Iterable Unpacking
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum schrieb:
On 5/1/07, Brett Cannon <brett at python.org> wrote:
> Also, what should this do? Perhaps the grammar could disallow it? > > *a = range(5)
I say disallow it. That is ambiguous as to what your intentions are even if you know what '*' does for multiple assignment. My real point was that the PEP lacks precision here. It should list the exact proposed changes to Grammar/Grammar.
You're right.
I tried to imply this with "A tuple (or list) on the left side of a simple assignment", but it isn't clear enough.
I'll update the PEP to incorporate the grammar changes today.
Georg
-- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out.
- Previous message: [Python-3000] PEP 3132: Extended Iterable Unpacking
- Next message: [Python-3000] PEP 3132: Extended Iterable Unpacking
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]