Re: PyCodeObject incompatibility

Armin Rigo <[email protected]> Thu, 10 Feb 2022 14:24:57 +0100
Newsgroups gmane.comp.python.pypy
Message-ID <CAMSv6X3WeVVFSK2Er=aYYQ_VuGjAK5uwUeJm_qXZBaM=t_Y+mQ@mail.gmail.com>
Hi,

On Thu, 10 Feb 2022 at 14:20, Carl Friedrich Bolz-Tereick <[email protected]> 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