[pypy-dev] PyCodeObject incompatibility
Armin Rigo
armin.rigo at gmail.com
Thu Feb 10 08:24:57 EST 2022
Hi,
On Thu, 10 Feb 2022 at 14:20, Carl Friedrich Bolz-Tereick <cfbolz at gmx.de> wrote:
> are doing with them? But yes, as Armin write, accessing the the .co_*
> attributes with PyObject_GetAttrString is an approach!
Oops, sorry. Python 3 renamed various attributes to use the
double-underscore convention, like on function objects, but skipped
code objects for some reason. So I meant
`PyObject_GetAttrString(code, "co_consts")`.
Armin
More information about the pypy-dev
mailing list