This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2020-04-28.21:55:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588110917.55.0.0908942535567.issue40429@roundup.psfhosted.org>
In-reply-to
Content
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-sig@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.
History
Date User Action Args
2020-04-28 21:55:17vstinnersetrecipients: + vstinner
2020-04-28 21:55:17vstinnersetmessageid: <1588110917.55.0.0908942535567.issue40429@roundup.psfhosted.org>
2020-04-28 21:55:17vstinnerlinkissue40429 messages
2020-04-28 21:55:17vstinnercreate