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 methane
Recipients benjamin.peterson, geeknik, methane
Date 2017-08-10.08:27:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502353637.23.0.734242857846.issue31166@psf.upfronthosting.co.za>
In-reply-to
Content
As Benjamin commented, this is caused by mutating internal dict.

PyType_Lookup() use "method cache", based on "tp_version_tag" in the type object.
When you modify internal dict directly, namespace is changed without
invalidating tp_version_tag.
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.
History
Date User Action Args
2017-08-10 08:27:17methanesetrecipients: + methane, benjamin.peterson, geeknik
2017-08-10 08:27:17methanesetmessageid: <1502353637.23.0.734242857846.issue31166@psf.upfronthosting.co.za>
2017-08-10 08:27:17methanelinkissue31166 messages
2017-08-10 08:27:16methanecreate