On Tue, Feb 24, 2009 at 10:53 AM, <mobiledream...@gmail.com> wrote: > 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
You can, but it's an evil hack that I would avoid if at all possible; there are almost certainly better ways to accomplish whatever your goal is. Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com -- http://mail.python.org/mailman/listinfo/python-list