Flag | Mnemonics | Description | Source code | Flags |
0001h | OPTIMIZED | ? |
?
|
?
|
0002h | NEWLOCALS | ? |
?
|
?
|
0004h | VARARGS | Funcdef has ``"*" identifier'' |
def f(*a): pass
|
f: (OPTIMIZED, NEWLOCALS, VARARGS, NOFREE)
|
0008h | VARKEYWORDS | Funcdef has ``"**" identifier'' |
def f(**a): pass
|
f: (OPTIMIZED, NEWLOCALS, VARKEYWORDS, NOFREE)
|
0010h | NESTED | Function is nested |
def f():
def g(): pass
|
f: (OPTIMIZED, NEWLOCALS, NOFREE)
g: (OPTIMIZED, NEWLOCALS, NOFREE, NESTED)
|
0020h | GENERATOR | Function is a generator |
def f(): yield 1
|
f: (GENERATOR, OPTIMIZED, NEWLOCALS, NOFREE)
|
0040h | NOFREE | No free and cell vars |
def f():
a = 1
def g(): return a + 1
return g()
|
<module>: (NOFREE)
f: (OPTIMIZED, NEWLOCALS)
g: (OPTIMIZED, NEWLOCALS, NESTED)
|
1000h | GENERATOR_ALLOWED | ? |
?
|
?
|
2000h | FUTURE_DIVISION | Future division is enabled |
from __future__ import division
def f(): pass
|
<module>: (FUTURE_DIVISION, NOFREE)
f: (OPTIMIZED, NEWLOCALS, FUTURE_DIVISION, NOFREE)
|
4000h | FUTURE_ABSOLUTE_IMPORT | Future absolute import is enabled |
from __future__ import absolute_import
|
<module>: (NOFREE, FUTURE_ABSOLUTE_IMPORT)
|
8000h | FUTURE_WITH_STATEMENT | Future with statement is enabled |
from __future__ import with_statement
|
<module>: (NOFREE, FUTURE_WITH_STATEMENT)
|