New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compound_stmt syntax includes 'decorated' #48163
Comments
The python 3.0 Language Reference page describing compound_stmt |
If you look at the real Grammar (in Grammar/Grammar), you will see that |
But the real Grammar doesn't include decorators on funcdef and classdef, Benjamin Peterson wrote:
|
The language reference is merely a explanation of the the Grammar, so I |
The grammar definitions in the Language Reference are _not_ just a So the Grammar defines funcdef and classdef _without_ decorators and The Language Reference defines both funcdef and classdef _with_ optional http://docs.python.org/dev/3.0/reference/compound_stmts.html#grammar-token-funcdef Now, I just also noticed that the Language Reference actually has two Also, the first definition of funcdef in the Language Reference has an There are many other places where the grammar defined in the Language Benjamin Peterson wrote:
|
Bruce is right. I fixed "decorated", the duplicate "funcdef" and the "?" in r66527 and Bruce, usually adding comments with more issues, especially if they are |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: