[New-bugs-announce] [issue5018] Overly general claim about sequence unpacking in tutorial

Mitchell Model report at bugs.python.org
Wed Jan 21 02:54:26 CET 2009


New submission from Mitchell Model <mlm at acm.org>:

The datastructures section of the tutorial states with respect to 
"sequence unpacking" that "there is a small bit of asymmetry here: packing 
multiple values always creates a tuple, and unpacking works for any 
sequence". This is too general, as shown by the definition of assignment 
statement target in the simple_stmts section of the reference shows: 
tuples and lists are the only kinds of sequences that can appear on the 
left-hand side of an assignment statement.

----------
assignee: georg.brandl
components: Documentation
messages: 80307
nosy: MLModel, georg.brandl
severity: normal
status: open
title: Overly general claim about sequence unpacking in tutorial
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5018>
_______________________________________


More information about the New-bugs-announce mailing list