[Tutor] Accessing callers context from callee method

mobiledreamers at gmail.com mobiledreamers at gmail.com
Tue Feb 24 19:53:29 CET 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/tutor/attachments/20090224/4bfd0b56/attachment.htm>


More information about the Tutor mailing list