Possible to reach back in stack and grab calling function's locals()?

python at bdurham.com python at bdurham.com
Thu Jun 17 16:02:24 EDT 2010


Is there an elegant way to reach back in the stack and grab the
calling function's copy of locals()?

I'm working on a library that does lots of textmerge operations
and am looking for a way to eliminate the need for many of the
calls to our library to have to explictly pass locals() to our
formatting functions.

Thank you,
Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100617/dff33022/attachment.html>


More information about the Python-list mailing list