[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

Michael Foord report at bugs.python.org
Fri Mar 23 11:38:25 CET 2012


Michael Foord <michael at voidspace.org.uk> added the comment:

So PyGame __init__.py has various not-a-module objects with __getattr__ that raises a NotImplementedError on every attribute access. Changing inspect to use getattr_static, so it doesn't trigger code execution on attribute access, would fix the problem.

Making pydoc resilient against exceptions is probably a *better* solution for the specific problem - although changing ismethoddescriptor to not trigger code execution would be good *as well*.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14367>
_______________________________________


More information about the Python-bugs-list mailing list