Author pablogsal
Recipients BTaskaya, amaury.forgeotdarc, georg.brandl, nicdumz, pablogsal
Date 2019-12-29.16:56:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I am not convinced about this. One of the problems I dislike is that the gc will take permanent ownership of the file descriptor (so is basically leaked). Is also not clear how this will behave during the delicate stages of finalization (the stream object provided can be anything that we have no control over during finalization) and also, it makes it a bit riskier as this can execute arbitrary python code in the middle of the gc.

On the other hand, is possible to use the gc callbacks to gather similar statistics about collections doing whatever you need there (like writing to file descriptors and the such).
Date User Action Args
2019-12-29 16:56:51pablogsalsetrecipients: + pablogsal, georg.brandl, amaury.forgeotdarc, nicdumz, BTaskaya
2019-12-29 16:56:50pablogsalsetmessageid: <>
2019-12-29 16:56:50pablogsallinkissue5851 messages
2019-12-29 16:56:50pablogsalcreate