[issue12719] Direct access to tp_dict can lead to stale attributes

2011-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ef65516fd7a by Benjamin Peterson in branch '3.2': note mutating tp_dict is bad (closes #12719) http://hg.python.org/cpython/rev/6ef65516fd7a New changeset 69df5a8d164e by Benjamin Peterson in branch 'default': merge 3.2 (#12719) http://hg.python.o

[issue12719] Direct access to tp_dict can lead to stale attributes

2011-08-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is forbidden, and I agree there should be a doc note. See #1878. -- assignee: -> docs@python components: +Documentation -Extension Modules nosy: +benjamin.peterson, docs@python ___ Python tracker

[issue12719] Direct access to tp_dict can lead to stale attributes

2011-08-09 Thread Martin von Gagern
New submission from Martin von Gagern : The attached C extension provides a way to manually set an element in the dict of an extension type. As the test case exposes, this can result in a discrepancy between cls.__dict__['key'] and cls.key. Please tell me up front if my extension simply does s