diff options
author | Emily Morehouse <emily@cuttlesoft.com> | 2018-01-02 01:34:53 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2018-01-02 01:34:53 (GMT) |
commit | f190eb59e60e2ae7a7cbd396458389a7a076e0d3 (patch) | |
tree | bfff0ccbda393dba637cd9d87d9fa2f7fc9bf218 /Doc/tutorial | |
parent | 7cc42c356b0dc5ad9eaa9392789e84bd4aa1c7de (diff) | |
download | cpython-f190eb59e60e2ae7a7cbd396458389a7a076e0d3.zip cpython-f190eb59e60e2ae7a7cbd396458389a7a076e0d3.tar.gz cpython-f190eb59e60e2ae7a7cbd396458389a7a076e0d3.tar.bz2 |
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)
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/classes.rst | 6 |
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. |