Michael Foord <mich...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14367>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to