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 renderpage(k
> 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 in
On Tue, Feb 24, 2009 at 10:53 AM, 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 w
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
--
http://mail.python.org/mailm