Pablo Galindo Salgado <pablog...@gmail.com> added the comment:
I cannot reproduce this in 3.6.5: >>>import sys >>>import gc >>>a = type(sys)('a') >>>b = a.__dict__ >>>print(b['__name__'] is None) False >>>del a >>>gc.collect() >>>print(b['__name__'] is None) False On the other hand, this still happens in 2.7.15: Python 2.7.15 (default, May 1 2018, 20:16:04) [GCC 7.3.1 20180406] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>import sys >>>import gc >>>a = type(sys)('a') >>>b = a.__dict__ >>>print(b['__name__'] is None) False >>>del a >>>gc.collect() >>>print(b['__name__'] is None) True ---------- nosy: +pablogsal _______________________________________ 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