Message314043
@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. |
|
Date |
User |
Action |
Args |
2018-03-18 15:34:34 | Henrique Andrade | set | recipients:
+ Henrique Andrade, pitrou, davin, pablogsal |
2018-03-18 15:34:34 | Henrique Andrade | set | messageid: <1521387274.48.0.467229070634.issue33081@psf.upfronthosting.co.za> |
2018-03-18 15:34:34 | Henrique Andrade | link | issue33081 messages |
2018-03-18 15:34:34 | Henrique Andrade | create | |
|