Author pitrou
Recipients Jim.Jewett, amaury.forgeotdarc, asvetlov, dstanek, kristjan.jonsson, loewis, pitrou, rhettinger, stutzbach, tim.peters
Date 2012-04-17.10:33:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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:13pitrousetrecipients: + pitrou, tim.peters, loewis, rhettinger, amaury.forgeotdarc, kristjan.jonsson, dstanek, stutzbach, asvetlov, Jim.Jewett
2012-04-17 10:33:13pitrousetmessageid: <>
2012-04-17 10:33:12pitroulinkissue9141 messages
2012-04-17 10:33:12pitroucreate