Py_TRASHCAN_SAFE_BEGIN/END in C extension?

Marco Sulla Marco.Sulla.Python at gmail.com
Tue Dec 21 17:05:02 EST 2021


In Python 3.7, must Py_TRASHCAN_SAFE_BEGIN - Py_TRASHCAN_SAFE_END be
used in a C extension?

I'm asking because in my C extension I use them in the deallocator
without problems, but users signalled me that they segfault in Python
3.7 on Debian 10. I checked and this is true.


More information about the Python-list mailing list