Wednesday, June 16, 2010

filename and line number of python script

Programmer Question

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.



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails