From 239909dc4c2f6fa273f7c0ec27f33b4d6d2391ac Mon Sep 17 00:00:00 2001 From: Alois Mahdal Date: Tue, 24 Sep 2013 14:01:59 +0200 Subject: [PATCH 1/2] Clarify presence of a two-element tuple. --- docs/writing/style.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index e48956a2e..a631e4a0c 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -273,7 +273,8 @@ Unpacking ~~~~~~~~~ If you know the length of a list or tuple, you can assign names to its -elements with unpacking: +elements with unpacking. For example, since you know that ``enumerate()`` +will provide a tuple of two elements for each item in list: .. code-block:: python From f32ef5f38f4b4db300b334b1ee4b98950826199d Mon Sep 17 00:00:00 2001 From: Alois Mahdal Date: Tue, 24 Sep 2013 22:25:57 +0200 Subject: [PATCH 2/2] Reworded per rgbkrk's suggestion --- docs/writing/style.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index a631e4a0c..33339ff9f 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -273,8 +273,8 @@ Unpacking ~~~~~~~~~ If you know the length of a list or tuple, you can assign names to its -elements with unpacking. For example, since you know that ``enumerate()`` -will provide a tuple of two elements for each item in list: +elements with unpacking. For example, since ``enumerate()`` will provide +a tuple of two elements for each item in list: .. code-block:: python