Knowledge Base
Authentication is disabled (development mode).

python print __FILE__(__LINE__):

Edit

code file frame line number position print python source stack

import inspect

frame = inspect.currentframe()
print("%s(%u):" % (frame.f_code.co_filename, frame.f_lineno))