]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#11400: remove reference to pre-1.5 assignment behavior.
authorGeorg Brandl <georg@python.org>
Sun, 6 Mar 2011 09:48:43 +0000 (10:48 +0100)
committerGeorg Brandl <georg@python.org>
Sun, 6 Mar 2011 09:48:43 +0000 (10:48 +0100)
Doc/reference/simple_stmts.rst

index 30861d4c6820305910ee357f2bcaba7ae1ffd7b9..722ee7725e5a56dd6b2f4fe0525d0a6cca1b93d6 100644 (file)
@@ -119,9 +119,6 @@ square brackets, is recursively defined as follows.
 * 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