mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Issue 2117. Update compiler module to handle class decorators.
Thanks Thomas Herve
This commit is contained in:
parent
a3c8c10201
commit
4219da4bd0
4 changed files with 21 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ Stmt: nodes!
|
|||
Decorators: nodes!
|
||||
Function: decorators&, name*, argnames*, defaults!, flags*, doc*, code
|
||||
Lambda: argnames*, defaults!, flags*, code
|
||||
Class: name*, bases!, doc*, code
|
||||
Class: name*, bases!, doc*, code, decorators& = None
|
||||
Pass:
|
||||
Break:
|
||||
Continue:
|
||||
|
|
@ -97,7 +97,7 @@ init(Lambda):
|
|||
self.kwargs = 1
|
||||
|
||||
init(GenExpr):
|
||||
self.argnames = ['[outmost-iterable]']
|
||||
self.argnames = ['.0']
|
||||
self.varargs = self.kwargs = None
|
||||
|
||||
init(GenExprFor):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue