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 <1577638610.98.0.384424179076.issue5851@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2019-12-29 16:56:51pablogsalsetrecipients: + pablogsal, georg.brandl, amaury.forgeotdarc, nicdumz, BTaskaya
2019-12-29 16:56:50pablogsalsetmessageid: <1577638610.98.0.384424179076.issue5851@roundup.psfhosted.org>
2019-12-29 16:56:50pablogsallinkissue5851 messages
2019-12-29 16:56:50pablogsalcreate