Python equivt of __FILE__ and __LINE__

alain alainpoint at yahoo.fr
Wed Feb 13 10:07:31 EST 2008


On Feb 12, 7:44 pm, Jeff Schwab <j... at schwabcenter.com> wrote:

> It still would be nice to have syntax as clean as __FILE__ and __LINE__.

There exists an undocumented builtin called __file__, but
unfortunately no corresponding __line__

Alain




More information about the Python-list mailing list