[issue18181] PEP447: Add type.__getdescriptor__
Ronald Oussoren
report at bugs.python.org
Sun Jul 26 11:53:25 CEST 2015
Ronald Oussoren added the comment:
Todays version of the patch adds more tests, especially for exceptions in __getdescriptor__ during the lookup of special methods. Those tests were added because the C code couldn't get exceptions other than AttributeError before this patch and can get those know. This requires extra code, and hence extra tests (which exposed a number of crashers...).
The code should be solid now.
Note that the new error handling code isn't optimal style-wise, at some places I test for PyErr_Occurred() instead of adding error returns to functions now returning 'void' to keep the patch smaller and easier to review.
----------
Added file: http://bugs.python.org/file40027/pep447-2015-07-26.txt
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18181>
_______________________________________
More information about the Python-bugs-list
mailing list