Hi,

On Thu, 10 Feb 2022 at 14:20, Carl Friedrich Bolz-Tereick <cfb...@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
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to