Determine calling module's name
David Goodger
dgoodger at bigfoot.com
Thu Aug 10 22:49:20 EDT 2000
on 2000-08-10 03:17, Roland Mas (mas at echo.fr) wrote:
> (file, line, func, None) = list [len (list) - 3]
...
> (file, func, None) = whocalled ()
Um. Assigning to None. Bad idea. Side effects. Ouch! Please be careful!
--
David Goodger dgoodger at bigfoot.com Open-source projects:
- The Go Tools Project: http://gotools.sourceforge.net
(more to come!)
More information about the Python-list
mailing list