debugging - filename and line number of python script -


How can I get the file name and line number in Python script?

File information obtained from an exception traceback in this case without lifting an exception.

  inspection curentframe (). F_back.f_lineno  


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -