[Python-Dev] PyGC_Collect ignores state of enabled
(original) (raw)
Neil Schemenauer nas at arctrix.com
Mon May 16 00:48:50 EDT 2016
- Previous message (by thread): [Python-Dev] PyGC_Collect ignores state of `enabled`
- Next message (by thread): [Python-Dev] ctypes compatibility with 2.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I intended for gc.collect() to actually collect cycles even if the auto-GC was disabled. Having Py_Finalize() run GC even when it has been disabled seems wrong to me. Originally, cyclic GC was supposed to be optional. Back then, most programs did not leak cycles. I would vote for Py_Finalize() checking the 'enabled' flag and not calling PyGC_Collect if false.
Regards,
Neil
- Previous message (by thread): [Python-Dev] PyGC_Collect ignores state of `enabled`
- Next message (by thread): [Python-Dev] ctypes compatibility with 2.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]