Ronald Oussoren <ronaldousso...@mac.com> added the comment:

I'm -1 on adding this API as it is inherently unsafe and is bound to be used in 
locations where its contract is not honoured (especially outside of the core). 

Note that the pre-condition on the argument is that you now only own a 
reference to the object, but that there's also someone else that owns a 
reference.

It is better to bite the bullet and go for correct reference count updates when 
converting to the new PyFrame_GetCode API.

----------
nosy: +ronaldoussoren

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

Reply via email to