[docs] [issue12920] inspect.getsource fails to get source of local classes
Éric Araujo
report at bugs.python.org
Fri Sep 9 19:16:18 CEST 2011
Éric Araujo <merwok at netwok.org> added the comment:
> inspect.getsource called with a class defined in the same file fails
> with TypeError: <module '__main__' (built-in)> is a built-in class
The error message makes me think that getsource(__main__) was used, not getsource(SomeClass). Can you check again?
----------
nosy: +eric.araujo
title: Inspect.getsource fails to get source of local classes -> inspect.getsource fails to get source of local classes
versions: -Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12920>
_______________________________________
More information about the docs
mailing list