Back to index

python3.2  3.2.2
Classes | Defines | Typedefs | Functions | Variables
code.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PyCodeObject
struct  _addr_pair

Defines

#define CO_OPTIMIZED   0x0001
#define CO_NEWLOCALS   0x0002
#define CO_VARARGS   0x0004
#define CO_VARKEYWORDS   0x0008
#define CO_NESTED   0x0010
#define CO_GENERATOR   0x0020
#define CO_NOFREE   0x0040
#define CO_FUTURE_DIVISION   0x2000
#define CO_FUTURE_ABSOLUTE_IMPORT   0x4000 /* do absolute imports by default */
#define CO_FUTURE_WITH_STATEMENT   0x8000
#define CO_FUTURE_PRINT_FUNCTION   0x10000
#define CO_FUTURE_UNICODE_LITERALS   0x20000
#define CO_FUTURE_BARRY_AS_BDFL   0x40000
#define PY_PARSER_REQUIRES_FUTURE_KEYWORD
#define CO_MAXBLOCKS   20 /* Max static block nesting within a function */
#define PyCode_Check(op)   (Py_TYPE(op) == &PyCode_Type)
#define PyCode_GetNumFree(op)   (PyTuple_GET_SIZE((op)->co_freevars))

Typedefs

typedef struct _addr_pair PyAddrPair

Functions

 PyAPI_DATA (PyTypeObject) PyCode_Type
 PyAPI_FUNC (PyCodeObject *) PyCode_New(int
 PyAPI_FUNC (int) PyCode_Addr2Line(PyCodeObject *
 PyAPI_FUNC (PyObject *) PyCode_Optimize(PyObject *code

Variables

 int
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
int lasti
int PyAddrPairbounds
PyObjectconsts
PyObject PyObjectnames
PyObject PyObject PyObjectlineno_obj

Class Documentation

struct PyCodeObject

Definition at line 11 of file code.h.

Collaboration diagram for PyCodeObject:
Class Members
PyObject_HEAD int co_argcount
PyObject * co_cellvars
PyObject * co_code
PyObject * co_consts
PyObject * co_filename
int co_firstlineno
int co_flags
PyObject * co_freevars
int co_kwonlyargcount
PyObject * co_lnotab
PyObject * co_name
PyObject * co_names
int co_nlocals
int co_stacksize
PyObject * co_varnames
PyObject * co_weakreflist
void * co_zombieframe
struct _addr_pair

Definition at line 89 of file code.h.

Class Members
int ap_lower
int ap_upper

Define Documentation

#define CO_FUTURE_ABSOLUTE_IMPORT   0x4000 /* do absolute imports by default */

Definition at line 53 of file code.h.

#define CO_FUTURE_BARRY_AS_BDFL   0x40000

Definition at line 58 of file code.h.

#define CO_FUTURE_DIVISION   0x2000

Definition at line 52 of file code.h.

#define CO_FUTURE_PRINT_FUNCTION   0x10000

Definition at line 55 of file code.h.

#define CO_FUTURE_UNICODE_LITERALS   0x20000

Definition at line 56 of file code.h.

#define CO_FUTURE_WITH_STATEMENT   0x8000

Definition at line 54 of file code.h.

#define CO_GENERATOR   0x0020

Definition at line 40 of file code.h.

#define CO_MAXBLOCKS   20 /* Max static block nesting within a function */

Definition at line 65 of file code.h.

#define CO_NESTED   0x0010

Definition at line 39 of file code.h.

#define CO_NEWLOCALS   0x0002

Definition at line 36 of file code.h.

#define CO_NOFREE   0x0040

Definition at line 46 of file code.h.

#define CO_OPTIMIZED   0x0001

Definition at line 35 of file code.h.

#define CO_VARARGS   0x0004

Definition at line 37 of file code.h.

#define CO_VARKEYWORDS   0x0008

Definition at line 38 of file code.h.

Definition at line 63 of file code.h.

#define PyCode_Check (   op)    (Py_TYPE(op) == &PyCode_Type)

Definition at line 69 of file code.h.

#define PyCode_GetNumFree (   op)    (PyTuple_GET_SIZE((op)->co_freevars))

Definition at line 70 of file code.h.


Typedef Documentation

typedef struct _addr_pair PyAddrPair

Function Documentation

PyAPI_FUNC ( int  )

Definition at line 2410 of file pythonrun.c.

PyAPI_FUNC ( PyObject ) [read]

Definition at line 2431 of file pythonrun.c.

{
    return PyRun_FileExFlags(fp, p, s, g, l, c, NULL);
}

Variable Documentation

Definition at line 99 of file code.h.

Definition at line 102 of file code.h.

Definition at line 81 of file code.h.

Definition at line 81 of file code.h.

int

Definition at line 74 of file code.h.

Definition at line 99 of file code.h.

Definition at line 102 of file code.h.

Definition at line 102 of file code.h.