code |
co_argcount |
number of arguments (not including * or ** args) 参数个数(不包括* 和**) |
|
|
co_code |
string of raw compiled bytecode 二进制代码的原始字符串 |
|
|
co_consts |
tuple of constants used in the bytecode 常量元组 |
|
|
co_filename |
name of file in which this code object was created 代码所在的文件 |
|
|
co_firstlineno |
number of first line in Python source code python第一行源代码所在的行号 |
|
|
co_flags |
bitmap: 1=optimized | 2=newlocals | 4=*arg | 8=**arg |
|
|
co_lnotab |
encoded mapping of line numbers to bytecode indices |
|
|
co_name |
name with which this code object was defined 代码对象的名称 |
|
|
co_names |
tuple of names of local variables 局部变量的元组 |
|
|
co_nlocals |
number of local variables 局部变量的数量 |
|
|
co_stacksize |
virtual machine stack space required 所需的 virtual machine stack 空间 |
|
|
co_varnames |
tuple of names of arguments and local variables 参数和局部变量的名称元组 |