waylan a écrit :
(snip)
> 
> While Steve's examples certainly do the trick in this limited case, I
> assumed that the original poster was just starting with mod_python and
> I was simply trying to explain the bigger picture for future reference.
> As one develops more sophisticated code, simply adding it to the
> `handler` function becomes less desirable.

Indeed, but...

> Reacognizing that anything
> that must be reevaluated on each request must be callable 

There it gets plain wrong.

(snip)

> Steve's examples work because the current time is evaluated within
> `handler` and :
> 
> 
>>>>callable(handler)
> 
> True
> 
> While in the the original example:
> 
> 
>>>>callable(curtime)
> 
> False

The fact that the object bound to curtime being callable or not doesn't 
change anything to the problem. You can write as many functions as you 
want outside the handler, if they don't get called by the handler, this 
won't be of no use.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to