Debian Codegraph @

pypy/interpreter/astcompiler/consts.py

raw symbols SCIP
1 """
2 Various flags used during the compilation process.
3 """
4
5 CO_OPTIMIZED = 0x0001
6 CO_NEWLOCALS = 0x0002
7 CO_VARARGS = 0x0004
8 CO_VARKEYWORDS = 0x0008
9 CO_NESTED = 0x0010
10 CO_GENERATOR = 0x0020
11 CO_NOFREE = 0x0040
12 CO_COROUTINE = 0x0080
13 CO_ITERABLE_COROUTINE = 0x0100 # set by @types.coroutine
14 CO_ASYNC_GENERATOR = 0x0200
15 CO_GENERATOR_ALLOWED = 0x1000
16 CO_FUTURE_DIVISION = 0x20000
17 CO_FUTURE_ABSOLUTE_IMPORT = 0x40000
18 CO_FUTURE_WITH_STATEMENT = 0x80000
19 CO_FUTURE_PRINT_FUNCTION = 0x100000
20 CO_FUTURE_UNICODE_LITERALS = 0x200000
21 CO_FUTURE_BARRY_AS_BDFL = 0x400000
22 CO_FUTURE_GENERATOR_STOP = 0x800000
23 CO_FUTURE_ANNOTATIONS = 0x1000000 # annotations become strings at runtime
24
25 #pypy specific:
26 CO_KILL_DOCSTRING = 0x2000000
27 CO_YIELD_INSIDE_TRY = 0x4000000
28
29 PyCF_MASK = (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT |
30 CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION |
31 CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL |
32 CO_FUTURE_GENERATOR_STOP | CO_FUTURE_ANNOTATIONS)
33 PyCF_SOURCE_IS_UTF8 = 0x0100
34 PyCF_DONT_IMPLY_DEDENT = 0x0200
35 PyCF_ONLY_AST = 0x0400
36 PyCF_IGNORE_COOKIE = 0x0800
37 PyCF_ASYNC_HACKS = 0x1000
38 PyCF_ALLOW_INCOMPLETE_INPUT = 0x4000
39 PyCF_ACCEPT_NULL_BYTES = 0x10000000 # PyPy only, for compile()
40 PyCF_FOUND_ENCODING = 0x20000000 # PyPy only, for pytokenizer
41 PyCF_TYPE_COMMENTS = 0x40000000
42 PyCF_ALLOW_TOP_LEVEL_AWAIT = 0x2000
43
44 # Masks and values used by FORMAT_VALUE opcode
45 FVC_MASK = 0x3
46 FVC_NONE = 0x0
47 FVC_STR = 0x1
48 FVC_REPR = 0x2
49 FVC_ASCII = 0x3
50 FVS_MASK = 0x4
51 FVS_HAVE_SPEC = 0x4