Adding nested unpacking

This commit is contained in:
guibog
2012-06-24 21:47:24 +08:00
parent 8528261a2c
commit 513bb5fe51
+6
View File
@@ -232,6 +232,12 @@ You can use this to swap variables, as well:
a, b = b, a
Nested unpacking works too:
.. code-block:: python
a, (b, c) = 1, (2, 3)
Create an ignored variable
~~~~~~~~~~~~~~~~~~~~~~~~~~