Is there a way to identify the caller of a function? For example:
def foo():
print <Caller Functions name>
def bar():
foo()
I want foo to print "bar"... And it will be great if I can also detect
call is came from which module.
Thanks.
--
Love, Respect, Linux
################################################## ##########################
"And the next time you consider complaining that running Lucid Emacs
19.05 via NFS from a remote Linux machine in Paraguay doesn't seem to
get the background colors right, you'll know who to thank."
(By Matt Welsh)
################################################## ##########################
Tonguç Yumruk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/iR6d1xWu4MLSyoYRAoE4AJ4r1+kwxqnFOr+Mu9QOqDGF4Pw6KQ Cg3Syq
jabkOdMQup66Xymjtux1QXY=
=XtrV
-----END PGP SIGNATURE-----