/ Published in: Python
URL: http://juliobiason.net/2006/06/16/255306/
Expand |
Embed | Plain Text
def __line__ (): caller = inspect.stack()[1] return int (caller[2]) def __function__ (): caller = inspect.stack()[1] return caller[3]
You need to login to post a comment.
