How to find out in which module an instance of a class is created?

Johannes Janssen mail at johannes-janssen.de
Sun Aug 16 06:50:27 EDT 2009


Chris Rebert schrieb:
> On Sun, Aug 16, 2009 at 6:25 AM, Johannes
> Janssen<mail at johannes-janssen.de> wrote:
>   
>> Gabriel Genellina schrieb:
>>     
>>> The try/except around sys._getframe(1) is because that function is not
>>> mandatory/available on all Python implementations (that's the case for
>>> jython which doesn't provide it).
>>>       
>> Thanks, shouldn't such information be part of the python documentation of
>> sys._getframe()
>> (http://docs.python.org/library/sys.html?highlight=sys._getframe#sys._getframe)?
>>     
>
> The leading underscore kinda indirectly implies it, but yeah, it's
> worth mentioning.
> File a bug in the docs: http://bugs.python.org/
>
> Cheers,
> Chris
>   
I filed a bug: http://bugs.python.org/issue6712 .

Johannes



More information about the Python-list mailing list