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 pablogsal
Recipients natedogith1, pablogsal, pitrou
Date 2018-06-15.19:02:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529089333.53.0.56676864532.issue33867@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-06-15 19:02:13pablogsalsetrecipients: + pablogsal, pitrou, natedogith1
2018-06-15 19:02:13pablogsalsetmessageid: <1529089333.53.0.56676864532.issue33867@psf.upfronthosting.co.za>
2018-06-15 19:02:13pablogsallinkissue33867 messages
2018-06-15 19:02:13pablogsalcreate