summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-01-02 13:36:06 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2018-01-02 13:36:06 (GMT)
commitf24c1857a8a1ba3efb3f957d43371bc9499e3c86 (patch)
tree925215ccfb988bc2263c3fefb83ab5cffe8421e9 /Doc
parentaea95c2fbdec05dddd8b833a74eeb7ec8dc69706 (diff)
downloadcpython-f24c1857a8a1ba3efb3f957d43371bc9499e3c86.zip
cpython-f24c1857a8a1ba3efb3f957d43371bc9499e3c86.tar.gz
cpython-f24c1857a8a1ba3efb3f957d43371bc9499e3c86.tar.bz2
bpo-32452: clarify term 'brackets' in generator tutorial (GH-5079) (#5081)
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. (GH-5079) (cherry picked from commit f190eb59e60e2ae7a7cbd396458389a7a076e0d3)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/classes.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 95141f9..4676ef4 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.