On Wed, 1 Feb 2017 03:23:02 -0500 Philippe Proulx <eeppeliteloop at gmail.com> wrote: > > It feels like `bread` is never deleted in the module initialization > situation, but I don't know why: the only reference to the Bread Python > object is this `bread` name in the module... what could prevent this > object's __del__() method to be called? It works when I call `del bread` > manually: I would expect that the module finalization does the exact > same thing? When do you expect module finalization to happen? Your module is recorded in sys.modules so, unless you explicitly remove it from there, module finalization will only happen at interpreter shutdown. (and this question is more appropriate for the python-list, anyway) Regards Antoine.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4