bpo-32452: clarify term 'brackets' in generator tutorial (GH-5079) (#… · python/cpython@f24c185 (original) (raw)

Original file line number Diff line number Diff line change
@@ -876,9 +876,9 @@ Generator Expressions
876 876 =====================
877 877
878 878 Some simple generators can be coded succinctly as expressions using a syntax
879 -similar to list comprehensions but with parentheses instead of brackets. These
880 -expressions are designed for situations where the generator is used right away
881 -by an enclosing function. Generator expressions are more compact but less
879 +similar to list comprehensions but with parentheses instead of square brackets.
880 +These expressions are designed for situations where the generator is used right
881 +away by an enclosing function. Generator expressions are more compact but less
882 882 versatile than full generator definitions and tend to be more memory friendly
883 883 than equivalent list comprehensions.
884 884