Display current line number of running script

Denis S. Otkidach ods at fep.ru
Wed Apr 10 08:58:50 EDT 2002


On 10 Apr 2002, mdk wrote:

m> Is there a function that would return the current line number
m> that the
m> running script is on?

E.g., inspect.getlineno(sys._getframe())






More information about the Python-list mailing list