Python equivt of __FILE__ and __LINE__

alain alainpoint at yahoo.fr
Thu Feb 14 03:11:39 EST 2008


On Feb 14, 1:50 am, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> En Wed, 13 Feb 2008 13:07:31 -0200, alain <alainpo... at yahoo.fr> 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:http://docs.python.org/ref/types.html#l2h-107
>
> --
> Gabriel Genellina

Sorry for the mistake, i should have double-checked.

Alain



More information about the Python-list mailing list