Éric Araujo <mer...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12920>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to