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

Johannes Janssen mail at
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() 


More information about the Python-list mailing list