Message158537
> Surely, if these objects define non-trivial 'close' members, they must
> not be called during garbage collection.
Define "non-trivial". There are various tests for it in test_io.
Not ending up in gc.garbage is *by design*. Making file objects uncollectable as soon as they appear in a reference cycle would be a serious regression. That's why the cleanup is done in tp_dealloc instead of having a __del__. |
|
Date |
User |
Action |
Args |
2012-04-17 10:33:13 | pitrou | set | recipients:
+ pitrou, tim.peters, loewis, rhettinger, amaury.forgeotdarc, kristjan.jonsson, dstanek, stutzbach, asvetlov, Jim.Jewett |
2012-04-17 10:33:13 | pitrou | set | messageid: <1334658793.36.0.990463551611.issue9141@psf.upfronthosting.co.za> |
2012-04-17 10:33:12 | pitrou | link | issue9141 messages |
2012-04-17 10:33:12 | pitrou | create | |
|