From 513bb5fe5146cbc9d5454e93abb7c7a61c050e22 Mon Sep 17 00:00:00 2001 From: guibog Date: Sun, 24 Jun 2012 21:47:24 +0800 Subject: [PATCH] Adding nested unpacking --- docs/writing/style.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index 0be34fc..4198c27 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -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 ~~~~~~~~~~~~~~~~~~~~~~~~~~