python-2.7.6/include/code.h Source File
Go to the documentation of this file.
33 #define CO_OPTIMIZED 0x0001
34 #define CO_NEWLOCALS 0x0002
35 #define CO_VARARGS 0x0004
36 #define CO_VARKEYWORDS 0x0008
37 #define CO_NESTED 0x0010
38 #define CO_GENERATOR 0x0020
44 #define CO_NOFREE 0x0040
48 #define CO_GENERATOR_ALLOWED 0x1000
50 #define CO_FUTURE_DIVISION 0x2000
51 #define CO_FUTURE_ABSOLUTE_IMPORT 0x4000
52 #define CO_FUTURE_WITH_STATEMENT 0x8000
53 #define CO_FUTURE_PRINT_FUNCTION 0x10000
54 #define CO_FUTURE_UNICODE_LITERALS 0x20000
60 #define PY_PARSER_REQUIRES_FUTURE_KEYWORD
63 #define CO_MAXBLOCKS 20
67 #define PyCode_Check(op) (Py_TYPE(op) == &PyCode_Type)
68 #define PyCode_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars))
86 #define _PyCode_GETCODEPTR(co, pp) \
87 ((*Py_TYPE((co)->co_code)->tp_as_buffer->bf_getreadbuffer) \
88 ((co)->co_code, 0, (void **)(pp)))
98 PyAPI_FUNC(
int) _PyCode_CheckLineNumber(PyCodeObject*
co,
PyObject_HEAD int co_argcount
PyObject PyObject * names
PyObject PyObject PyObject * lineno_obj
PyObject PyObject PyObject PyObject PyObject PyObject PyObject PyObject PyObject const char * funcname
PyObject PyObject PyObject PyObject PyObject PyObject PyObject PyObject PyObject const char int firstlineno
struct _addr_pair PyAddrPair
PyAPI_FUNC(PyCodeObject *) PyCode_New(int
PyObject * co_weakreflist
PyAPI_DATA(PyTypeObject) PyCode_Type