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

Johannes Janssen mail at johannes-janssen.de
Sun Aug 16 12:25:46 CEST 2009


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)?

Johannes



More information about the Python-list mailing list