Stefan Behnel <stefan...@behnel.de> added the comment:

To add to the list, Cython also calls _Py_NewReference() in its async generator 
code, which uses a free-list. That code was mostly copied from the 
CPython-internal implementation.

Other freelist implementations in Cython call PyObject_INIT() instead, so I 
guess calling _Py_NewReference() directly here isn't actually required and 
could be avoided.

----------
nosy: +scoder

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

Reply via email to