Open Search
    PyCodeObject Struct Reference

    #include <code.h>

    Public Attributes

    PyObject_HEAD int co_argcount
     
    int co_posonlyargcount
     
    int co_kwonlyargcount
     
    int co_nlocals
     
    int co_stacksize
     
    int co_flags
     
    int co_firstlineno
     
    PyObjectco_code
     
    PyObjectco_consts
     
    PyObjectco_names
     
    PyObjectco_varnames
     
    PyObjectco_freevars
     
    PyObjectco_cellvars
     
    Py_ssize_tco_cell2arg
     
    PyObjectco_filename
     
    PyObjectco_name
     
    PyObjectco_lnotab
     
    void * co_zombieframe
     
    PyObjectco_weakreflist
     
    void * co_extra
     
    unsigned char * co_opcache_map
     
    _PyOpcacheco_opcache
     
    int co_opcache_flag
     
    unsigned char co_opcache_size
     

    Member Data Documentation

    ◆ co_argcount

    PyObject_HEAD int co_argcount

    ◆ co_posonlyargcount

    int co_posonlyargcount

    ◆ co_kwonlyargcount

    int co_kwonlyargcount

    ◆ co_nlocals

    int co_nlocals

    ◆ co_stacksize

    int co_stacksize

    ◆ co_flags

    int co_flags

    ◆ co_firstlineno

    int co_firstlineno

    ◆ co_code

    PyObject* co_code

    ◆ co_consts

    PyObject* co_consts

    ◆ co_names

    PyObject* co_names

    ◆ co_varnames

    PyObject* co_varnames

    ◆ co_freevars

    PyObject* co_freevars

    ◆ co_cellvars

    PyObject* co_cellvars

    ◆ co_cell2arg

    Py_ssize_t* co_cell2arg

    ◆ co_filename

    PyObject* co_filename

    ◆ co_name

    PyObject* co_name

    ◆ co_lnotab

    PyObject* co_lnotab

    ◆ co_zombieframe

    void* co_zombieframe

    ◆ co_weakreflist

    PyObject* co_weakreflist

    ◆ co_extra

    void* co_extra

    ◆ co_opcache_map

    unsigned char* co_opcache_map

    ◆ co_opcache

    _PyOpcache* co_opcache

    ◆ co_opcache_flag

    int co_opcache_flag

    ◆ co_opcache_size

    unsigned char co_opcache_size