This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Henrique Andrade
Recipients Henrique Andrade, davin, pablogsal, pitrou
Date 2018-03-18.15:34:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521387274.48.0.467229070634.issue33081@psf.upfronthosting.co.za>
In-reply-to
Content
@pablo: I am using Python 2.7.12 (distributed with Ubuntu 16), what are you using? This might explain the difference between what we see.

Yet, irrespective of this difference, imho, it would be a better design to have "close" actually closing the underlying resources.

In general, if one has to delete and/or invoke the garbage collector on an object, it's an indication that the design needs a bit of polish. Just picture the small scenario I described amplified to a situation where a large number of queues is used, which is perhaps an artificial scenario, but one would end up with a bunch of file descriptors hanging around for no reason.

This is what files and sockets, for example, would do.
History
Date User Action Args
2018-03-18 15:34:34Henrique Andradesetrecipients: + Henrique Andrade, pitrou, davin, pablogsal
2018-03-18 15:34:34Henrique Andradesetmessageid: <1521387274.48.0.467229070634.issue33081@psf.upfronthosting.co.za>
2018-03-18 15:34:34Henrique Andradelinkissue33081 messages
2018-03-18 15:34:34Henrique Andradecreate