[Python-checkins] r55085 - peps/trunk/pep-3132.txt
georg.brandl
python-checkins at python.org
Wed May 2 23:45:37 CEST 2007
Author: georg.brandl
Date: Wed May 2 23:45:29 2007
New Revision: 55085
Modified:
peps/trunk/pep-3132.txt
Log:
Little addition.
Modified: peps/trunk/pep-3132.txt
==============================================================================
--- peps/trunk/pep-3132.txt (original)
+++ peps/trunk/pep-3132.txt Wed May 2 23:45:29 2007
@@ -87,7 +87,7 @@
Note that this proposal also applies to tuples in implicit assignment
context, such as in a ``for`` statement::
- for (a, *b) in [(1, 2, 3), (4, 5, 6, 7)]:
+ for a, *b in [(1, 2, 3), (4, 5, 6, 7)]:
print(b)
would print out ::
@@ -95,6 +95,10 @@
[2, 3]
[5, 6, 7]
+Starred expressions are only allowed as assignment targets, using them
+anywhere else (except for star-args in function calls, of course) is an
+error.
+
Implementation
==============
More information about the Python-checkins
mailing list