Source

pypy / pypy / interpreter / astcompiler / consts.py

Benjamin Peterso… dd6c41d 


Ludovic Aubry 11ad8d2 






Maciej Fijalkows… 6018b3a 
Ludovic Aubry 11ad8d2 

Carl Friedrich B… 81fce19 
Adrien Di Mascio 4dc37e6 
Benjamin Peterso… 74db835 
Benjamin Peterso… 7ffc409 
Antonio Cuni b1a5512 

Armin Rigo fe457c4 


Daniel Roberts 23a64a5 
"""
Various flags used during the compilation process.
"""

CO_OPTIMIZED = 0x0001
CO_NEWLOCALS = 0x0002
CO_VARARGS = 0x0004
CO_VARKEYWORDS = 0x0008
CO_NESTED = 0x0010
CO_GENERATOR = 0x0020
CO_NOFREE = 0x0040
CO_GENERATOR_ALLOWED = 0x1000
CO_FUTURE_DIVISION = 0x2000
CO_FUTURE_ABSOLUTE_IMPORT = 0x4000
CO_FUTURE_WITH_STATEMENT = 0x8000
CO_FUTURE_PRINT_FUNCTION = 0x10000
CO_FUTURE_UNICODE_LITERALS = 0x20000
CO_CONTAINSGLOBALS = 0x80000 # pypy-specific: need to check that it's not used
                             # by any other flag

PyCF_SOURCE_IS_UTF8 = 0x0100
PyCF_DONT_IMPLY_DEDENT = 0x0200
PyCF_ONLY_AST = 0x0400