Python equivt of __FILE__ and __LINE__

Gabriel Genellina gagsl-py2 at
Thu Feb 14 01:50:50 CET 2008

En Wed, 13 Feb 2008 13:07:31 -0200, alain <alainpoint at> escribió:

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

There is no __file__ builtin AFAIK; but there is __file__ module attribute  
documented here:

Gabriel Genellina

More information about the Python-list mailing list