filename and line number of python script

Posted by Joey on Stack Overflow See other posts from Stack Overflow or by Joey
Published on 2010-06-16T18:19:22Z Indexed on 2010/06/16 18:22 UTC
Read the original article Hit count: 183

Filed under:
|
|

Hello everyone,

How can I get the file name and line number in python script.

Exactly the file information we get from an exception traceback. In this case without raising an exception.

© Stack Overflow or respective owner

Related posts about python

Related posts about debugging