types and objects attribute description tuple containing names of variables referenced by nested functions co_freevars tuple containing names of free variables used by nested functions co_code string representing raw bytecode co_consts tuple containing the literals used by the bytecode co_names tuple containing names used by the bytecode co_filename name of the file in which the code was compiled co_firstlineno first line number of the function co_lnotab string encoding bytecode offsets to line numbers co_stacksize required stack size (including local variablesc co_flags integer containing interpreter flags bit is set if the function uses variable number of positional arguments using "*argsbit is set if the function allows arbitrary keyword arguments using "**kwargsall other bits are reserved co_cellvars frame objects frame objects are used to represent execution frames and most frequently occur in traceback objects (described nexta frame objectfhas the following read-only attributesattribute description f_back f_code f_locals f_globals f_builtins f_lineno f_lasti previous stack frame (toward the callercode object being executed dictionary used for local variables dictionary used for global variables dictionary used for built-in names line number current instruction this is an index into the bytecode string of f_code the following attributes can be modified (and are used by debuggers and other tools)attribute description f_trace f_exc_type f_exc_value f_exc_traceback function called at the start of each source code line most recent exception type (python onlymost recent exception value (python onlymost recent exception traceback (python onlytraceback objects traceback objects are created when an exception occurs and contain stack trace information when an exception handler is enteredthe stack trace can be retrieved using the lib fl ff