-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Closed
Labels
Description
Documentation
It seems that the last line in the following production list intended to define the token signed_number but mistakenly put it inside the definition of literal_pattern.
cpython/Doc/reference/compound_stmts.rst
Lines 836 to 844 in 91b7f2e
| .. productionlist:: python-grammar | |
| literal_pattern: `signed_number` | |
| : | `signed_number` "+" NUMBER | |
| : | `signed_number` "-" NUMBER | |
| : | `strings` | |
| : | "None" | |
| : | "True" | |
| : | "False" | |
| : | `signed_number`: NUMBER | "-" NUMBER |
The intended meaning might be:
signed_number: NUMBER | "-" NUMBER