Georg Brandl added the comment: We can of course add something like in #1229239, which allows type attributes to be set with PyObject_SetAttr, thereby updating the cache. __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1878> __________________________________