[Python-checkins] bpo-32452: clarify term 'brackets' in generator tutorial (#5079)

R. David Murray webhook-mailer at python.org
Mon Jan 1 20:34:56 EST 2018


https://github.com/python/cpython/commit/f190eb59e60e2ae7a7cbd396458389a7a076e0d3
commit: f190eb59e60e2ae7a7cbd396458389a7a076e0d3
branch: master
author: Emily Morehouse <emily at cuttlesoft.com>
committer: R. David Murray <rdmurray at bitdance.com>
date: 2018-01-01T20:34:53-05:00
summary:

bpo-32452: clarify term 'brackets' in generator tutorial (#5079)

Updates documentation for generator expressions in classes tutorial: Clarify usage of ambiguous term "brackets" by replacing with "square brackets". Updated subsequent lines to respect line breaks. (#5079)

files:
M Doc/tutorial/classes.rst

diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 95141f94d6a..4676ef4b8a6 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -876,9 +876,9 @@ Generator Expressions
 =====================
 
 Some simple generators can be coded succinctly as expressions using a syntax
-similar to list comprehensions but with parentheses instead of brackets.  These
-expressions are designed for situations where the generator is used right away
-by an enclosing function.  Generator expressions are more compact but less
+similar to list comprehensions but with parentheses instead of square brackets.
+These expressions are designed for situations where the generator is used right
+away by an enclosing function.  Generator expressions are more compact but less
 versatile than full generator definitions and tend to be more memory friendly
 than equivalent list comprehensions.
 



More information about the Python-checkins mailing list