Python equivt of __FILE__ and __LINE__

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Feb 14 01:50:50 CET 2008


En Wed, 13 Feb 2008 13:07:31 -0200, alain <alainpoint 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




More information about the Python-list mailing list