Accessing callers context from callee method

mobiledreamers at gmail.com mobiledreamers at gmail.com
Tue Feb 24 13:53:29 EST 2009


when i call a method foo from another method func. can i access func context
variables or locals() from foo
so
def func():
  i=10
  foo()

in foo, can i access func's local variables on in this case i
Thanks a lot
-- 
Bidegg worlds best auction site
http://bidegg.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090224/4bfd0b56/attachment.html>


More information about the Python-list mailing list