-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 sys._getframe.
Andreas jay wrote: > Hello all, > > If I import a module, which has a bunch of simple functions in it, is > there an easy way to find the direct caller from inside one of those > functions? I'm looking to know which script has imported and thus > called the library function. Thanks! > > jay > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGqLZeHJdudm4KnO0RAkV+AJ42mi3wqHp3vX1IBOQVeqIIiS7E7ACdHeRV E/oiSDLtQ408sNFQCIorMWo= =zY8c -----END PGP SIGNATURE----- _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor