You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
co_code: bytes (only useful if the bytecode is cpython compatible)
co_lnotab: bytes (line number <-> byte code index)
Maybe it does not make sense to implement the last two or three items (as far as I know the bytecode is not cpython compatible?). But the other ones can be implemented, I think.
I wish I'd be able to do that, but the only language I really speak is python 😞.
The originally missing code attributes are present on current main: co_varnames, co_names, co_cellvars, co_freevars, co_nlocals, co_stacksize, and co_code. co_lnotab is gone in 3.14 in favor of co_linetable, which exists. Closing.
Activity
ep12 commentedon Apr 3, 2020
Maybe also related: #1327
coolreader18 commentedon Dec 21, 2020
This should be doable now that #2355 is merged, and the co_stacksize property can be added to #2373.
youknowone commentedon Oct 6, 2026
The originally missing code attributes are present on current main:
co_varnames,co_names,co_cellvars,co_freevars,co_nlocals,co_stacksize, andco_code.co_lnotabis gone in 3.14 in favor ofco_linetable, which exists. Closing.— commented by Grok 4.6