Message319648
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 |
|
Date |
User |
Action |
Args |
2018-06-15 19:02:13 | pablogsal | set | recipients:
+ pablogsal, pitrou, natedogith1 |
2018-06-15 19:02:13 | pablogsal | set | messageid: <1529089333.53.0.56676864532.issue33867@psf.upfronthosting.co.za> |
2018-06-15 19:02:13 | pablogsal | link | issue33867 messages |
2018-06-15 19:02:13 | pablogsal | create | |
|