As for performance, you'll need to benchmark it. However, I think the functionality you're asking for is available as inspect.currentframe(), and if the implementation is in "C" it may have a tiny performance advantage over the Python version.
Jeff
pgpENIs7apfaF.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list