Skip to content

Commit fa16f82

Browse files
adqmJelleZijlstra
andauthored
Apply suggestions from code review
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent 0393552 commit fa16f82

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Doc/reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ produced.
433433
The second form uses a single expression prefixed by the ``**`` dictionary
434434
unpacking operator followed by the usual "for" and "if" clauses. When the
435435
comprehension is run, the expression is evaluated and then unpacked, inserting
436-
0 or more key/value pairs into the new dictionary.
436+
zero or more key/value pairs into the new dictionary.
437437

438438
Both forms of dictionary comprehension retain the property that if the same key
439439
is specified multiple times, the associated value in the resulting dictionary

Doc/tutorial/datastructures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ A tuple consists of a number of values separated by commas, for instance::
436436
>>> v
437437
([1, 2, 3], [3, 2, 1])
438438
>>> # they support unpacking just like lists:
439-
>>> x = [1,2,3]
439+
>>> x = [1, 2, 3]
440440
>>> 0, *x, 4
441441
(0, 1, 2, 3, 4)
442442

Grammar/python.gram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ atom[expr_ty]:
893893
| 'None' { _PyAST_Constant(Py_None, NULL, EXTRA) }
894894
| &(STRING|FSTRING_START|TSTRING_START) strings
895895
| NUMBER
896-
| &'(' ( genexp | tuple | group)
896+
| &'(' (genexp | tuple | group)
897897
| &'[' (listcomp | list)
898898
| &'{' (dictcomp | setcomp | dict | set)
899899
| '...' { _PyAST_Constant(Py_Ellipsis, NULL, EXTRA) }

0 commit comments

Comments
 (0)