__LINE__?

Gaetan Corneau Gaetan_Corneau at baan.com
Wed Nov 3 17:53:31 CET 1999


Is there an equivalent of the C __LINE__ macro in Python to get the
currentline number?

Obviously it is available, since exceptions report it.

Sorry if this is FAQ, I can't find it.

Thanks,
______________________________________________________
   Gaetan Corneau
   Software Developer (Quality Assurance Team)
   BaaN  Supply Chain Solutions  
   E-mail: Gaetan_Corneau at baan.com        
   Compuserve: Gaetan_Corneau at compuserve.com  
   ICQ Number: 7395494             
   Tel: (418) 266-8252          
______________________________________________________
"Profanity is the one language all programmers know best"





More information about the Python-list mailing list