Re: [Tutor] Accessing callers context from callee method

2009-02-25 Thread mobiledreamers
i found the solution This is my first attempt at memcaching html page using cheetah since cheetah render needs locals() i use getCallerInfo() to get the locals() and send to memcached let me know if it is possible to better do this *notice getCallerInfo * *utils.py* @log_time_func def

Re: [Tutor] Accessing callers context from callee method

2009-02-24 Thread wesley chun
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 A. python has statically-nested scoping, so you can do it as long as you: 1. define foo() as an inner