Skip to content

Commit 513bb5f

Browse files
author
guibog
committed
Adding nested unpacking
1 parent 8528261 commit 513bb5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/writing/style.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@ You can use this to swap variables, as well:
232232
233233
a, b = b, a
234234
235+
Nested unpacking works too:
236+
237+
.. code-block:: python
238+
239+
a, (b, c) = 1, (2, 3)
240+
235241
Create an ignored variable
236242
~~~~~~~~~~~~~~~~~~~~~~~~~~
237243

0 commit comments

Comments
 (0)