Message303850
"Maybe we should prevent collection of garbage with circular references (that has __del__() or weakref callbacks) from PyObject_GC_New()?"
That would be a major change in the garbage collector. I would prefer to not touch the GC, any change can introduce a complex regression.
Running the GC when an object is allocated makes sense to me. It's to reclaim memory, and prevent a MemoryError which would only be caused by "missed GC". |
|
Date |
User |
Action |
Args |
2017-10-06 20:12:48 | vstinner | set | recipients:
+ vstinner, lemburg, tim.peters, twouters, pitrou, serhiy.storchaka, Oren Milman, geeknik |
2017-10-06 20:12:48 | vstinner | set | messageid: <1507320768.39.0.213398074469.issue31165@psf.upfronthosting.co.za> |
2017-10-06 20:12:48 | vstinner | link | issue31165 messages |
2017-10-06 20:12:48 | vstinner | create | |
|