]> granicus.if.org Git - python/commitdiff
bpo-32452: clarify term 'brackets' in generator tutorial (#5079)
authorEmily Morehouse <emily@cuttlesoft.com>
Tue, 2 Jan 2018 01:34:53 +0000 (18:34 -0700)
committerR. David Murray <rdmurray@bitdance.com>
Tue, 2 Jan 2018 01:34:53 +0000 (20:34 -0500)
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)

Doc/tutorial/classes.rst

index 95141f94d6accbaf53fe30dcc99616414eee2308..4676ef4b8a6044c18ec008e22bfccdb4c9a66153 100644 (file)
@@ -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.