Return to Snippet

Revision: 15639
at July 12, 2009 14:34 by jvc


Initial Code
def __line__ ():
    caller = inspect.stack()[1]
    return int (caller[2])

def __function__ ():
    caller = inspect.stack()[1]
    return caller[3]

Initial URL
http://juliobiason.net/2006/06/16/255306/

Initial Description

                                

Initial Title
__FUNCTION__ and __LINE__ in Python

Initial Tags

                                

Initial Language
Python