How do I get the current file, current class, and current method with Python?
self.__class__.__name__ # name of class i'm in
for the rest the sys and trace modules
http://docs.python.org/library/sys.htmlhttp://docs.python.org/library/trace.html
Some more info:https://mail.python.org/pipermail/python-list/2001-August/096499.htmlandhttp://www.dalkescientific.com/writings/diary/archive/2005/04/20/tracing_python_code.html
did you want it for error reporting because the traceback module can handle that: