Aaron Gokaslan added the comment:
The frame object I am referring to was:
PyFrameObject *frame = PyThreadState_GetFrame(PyThreadState_Get());
This frame can not be used with PyObject_GetAttrString. Is there anyway to get
the PyObject* associated with a PyFrameObject*? It seems weird that
Aaron Gokaslan added the comment:
I saw the latest Python 3.11 5A release notes on the frame API changes. Do the
notes mean the only officially supported way of accessing co_varnames is now
through the Python interface and the inspect module? By using
PyObject_GetAttrString?
Also, the
Aaron Gokaslan added the comment:
`PyCodeObject_GetVariableName()` and `PyCodeObject_GetVariableKind()` work?
- Some public-gettters such as these functions would be ideal.
OOI, how do you cope with non-local self?
- We only care about checking self to prevent an infinite recursion in our
Aaron Gokaslan added the comment:
We didn't want to read colocalsplus directly because we were worried about the
stability of that approach and the code complexity / readability. Also, I
wasn't aware that colocalsplus would work or if that was lazily populated as
well.
The func
New submission from Aaron Gokaslan :
Hello, I am a maintainer with the PyBind11 project. We have been following the
3.11 development branch and have noticed an issue we are encountering with
changes to the C-API.
Particularly, we have an edge case in our overloading dispatch mechanism that