Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
354e4cbb
Commit
354e4cbb
authored
Mar 31, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#5018: remove confusing paragraph.
parent
44fb2a93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
Doc/tutorial/datastructures.rst
Doc/tutorial/datastructures.rst
+5
-7
No files found.
Doc/tutorial/datastructures.rst
View file @
354e4cbb
...
@@ -401,13 +401,11 @@ The reverse operation is also possible::
...
@@ -401,13 +401,11 @@ The reverse operation is also possible::
>>> x, y, z = t
>>> x, y, z = t
This is called, appropriately enough, *sequence unpacking*. Sequence unpacking
This is called, appropriately enough, *sequence unpacking* and works for any
requires the list of variables on the left to have the same number of elements
sequence on the right-hand side. Sequence unpacking requires the list of
as the length of the sequence. Note that multiple assignment is really just a
variables on the left to have the same number of elements as the length of the
combination of tuple packing and sequence unpacking!
sequence. Note that multiple assignment is really just a combination of tuple
packing and sequence unpacking!
There is a small bit of asymmetry here: packing multiple values always creates
a tuple, and unpacking works for any sequence.
.. XXX Add a bit on the difference between tuples and lists.
.. XXX Add a bit on the difference between tuples and lists.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment