New submission from STINNER Victor <vstin...@python.org>:
I recently added PyThreadState_GetFrame() and PyFrame_GetCode() functions to the C API of Python 3.9. Currently, these functions return borrowed references. I asked on capi-sig and Brett confirms that borrowed refrences should be avoided: https://mail.python.org/archives/list/capi-...@python.org/thread/LHESBBB3IYTXMBUKQ3WZI5CWB4WUH5YZ/ Borrowed references should be avoidedd! https://github.com/vstinner/misc/blob/master/cpython/pep-opaque-c-api.rst#borrowed-references I will work on a PR to modify these functions to return a strong reference instead. ---------- components: C API messages: 367570 nosy: vstinner priority: normal severity: normal status: open title: [C API] PyThreadState_GetFrame() and PyFrame_GetCode() should return a strong refrence versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40429> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com