New submission from natedogith1 <natedogi...@gmail.com>:
When a module is garbage collected, it fills it's __dict__ with None. issue19255 and issue18214 seem to suggest that this was fixed, along with github pull request 7140 (commit 196b0925ca55bf22ffbb97733cff3e63d4fb6e18). However, this still seems to be an issue in 2.7.14 and 3.6.2. >>> import sys >>> a = type(sys)('a') >>> b = a.__dict__ >>> b['__name__'] is None False >>> del a >>> b['__name__'] is None True ---------- components: Interpreter Core messages: 319581 nosy: natedogith1 priority: normal severity: normal status: open title: Module dicts are wiped on module garbage collection type: behavior versions: Python 2.7, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33867> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com