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

Chris Rebert clp2 at rebertia.com
Sun Aug 16 06:30:54 EDT 2009


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
-- 
http://blog.rebertia.com



More information about the Python-list mailing list