Meador Inge <mead...@gmail.com> added the comment: Amaury, how about this patch? I got rid of querying the type dictionary and hoisted the creation of the type instance earlier. Then 'PyObject_GetAttrString' can be used to lookup '_length_' and '_type_' by the regular Python attribute lookup rules. I extended the test cases to cover more error paths as well.
---------- Added file: http://bugs.python.org/file22893/issue11241.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11241> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com