bpo-44116: Add GC support to _csv heap types by erlend-aasland · Pull Request #26074 · python/cpython
- Implement full GC protocol support for _csv heap types
- Use tp_clear iso. tp_finalize to clear type contexts
Petr's reproducer now outputs the following:
$ ./python.exe bug.py
73166
73168
73168
73168
73168
73168
73166
73168
73168
73168
However, the _csv test suite now leaks (EDIT: updated output after b8772d6)
UPDATE: No leaks after 19e2952