[Python-checkins] cpython (3.1): #11400: remove reference to pre-1.5 assignment behavior.

georg.brandl python-checkins at python.org
Sun Mar 6 11:10:09 CET 2011


http://hg.python.org/cpython/rev/f7e04a9566c4
changeset:   68282:f7e04a9566c4
branch:      3.1
parent:      68275:f3f8b39eaa1e
user:        Georg Brandl <georg at python.org>
date:        Sun Mar 06 10:48:43 2011 +0100
summary:
  #11400: remove reference to pre-1.5 assignment behavior.

files:
  Doc/reference/simple_stmts.rst

diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -119,9 +119,6 @@
 * If the target list is a comma-separated list of targets: The object must be an
   iterable with the same number of items as there are targets in the target list,
   and the items are assigned, from left to right, to the corresponding targets.
-  (This rule is relaxed as of Python 1.5; in earlier versions, the object had to
-  be a tuple.  Since strings are sequences, an assignment like ``a, b = "xy"`` is
-  now legal as long as the string has the right length.)
 
   * If the target list contains one target prefixed with an asterisk, called a
     "starred" target: The object must be a sequence with at least as many items

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list