INADA Naoki added the comment:
As Benjamin commented, this is caused by mutating internal dict.
PyType_Lookup() use "method cache", based on "tp_version_tag" in the type
When you modify internal dict directly, namespace is changed without
So cached pointer is used, and it's already deallocated.
I don't know we should fix it or not.
I don't have any idea fix this without any performance penalty.
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list