STINNER Victor <vstin...@python.org> added the comment:

> Is there anyway to get the PyObject* associated with a PyFrameObject*?

Ah. I see. If you pass a PyFrameObject* frame to PyObject_GetAttrString(), you 
get a compiler warning.

You should cast it explicitly: PyObject_GetAttrString((PyObject*)frame, 
"f_locals").

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46166>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to