mirror of
https://github.com/python/cpython.git
synced 2025-10-14 18:59:46 +00:00
Fix _convert_NAME() so that it doesn't store locals for class bodies.
Fix list comp code generation -- emit GET_ITER instead of Const(0) after the list. Add CO_GENERATOR flag to generators. Get CO_xxx flags from the new module
This commit is contained in:
parent
017cb2c7d8
commit
71ebc3359b
6 changed files with 30 additions and 30 deletions
|
@ -1,6 +1,5 @@
|
|||
# code flags
|
||||
CO_VARARGS = 1
|
||||
CO_VARKEYWORDS = 2
|
||||
from new import * # import all the CO_xxx flags
|
||||
del classobj, code, function, instance, instancemethod, module
|
||||
|
||||
# operation flags
|
||||
OP_ASSIGN = 'OP_ASSIGN'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue