def current_line_number(): """Returns the current line number in our program. :return: current line number :rtype: int """ import inspect return inspect.currentframe().f_back.f_lineno