Skip to content

Commit e475a42

Browse files
committed
More precise wording for only one positional argument
1 parent 1ecb685 commit e475a42

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/reference/expressions.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,8 +980,9 @@ the following generator function::
980980

981981
make_generator_of_squares(range(10))
982982

983-
The enclosing parentheses can be omitted in calls with only one
984-
positional argument.
983+
The enclosing parentheses can be omitted in calls when the generator
984+
expression is the only positional argument and there are no keyword
985+
arguments.
985986
See the :ref:`Calls section <calls>` for details.
986987
For example::
987988

0 commit comments

Comments
 (0)