Re: [Python-Dev] PEP 442 undocumented C API functions

2017-08-27 Thread INADA Naoki
Hi, thanks to your report. > As far as I understand, if you have a custom tp_dealloc, you *have* to > call PyObject_CallFinalizerFromDealloc in order to get your tp_finalize > called. Is this correct? Sorry, I'm not expert of Object finalization process. But If my understanding is correct, you'r

[Python-Dev] PEP 442 undocumented C API functions

2017-08-26 Thread Pauli Virtanen
Hi, PEP 442 says "Two new C API functions are provided to ease calling of tp_finalize, especially from custom deallocators." This includes PyObject_CallFinalizerFromDealloc. However, no documentation of these functions appears to exist (https://bugs.python. org/issue31276). As far as I understan