Peter Ingebretson added the comment: Thanks Mark, I agree.
I thought that assigning to tp_dictoffset in inherit_special was redundant with the assignment in inherit_slot and the assignment I added, but I see that COPYSLOT and COPYVAL are slightly different and extension types won't go through type_new. Here's an updated patch. ---------- Added file: http://bugs.python.org/file34106/subclass-keys-pep-412.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20637> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com