yield, curry, mix-in, new.function, global, closure, .... what will work?

Paul Rubin http
Sun Apr 15 14:07:08 EDT 2007


ecir.hana at gmail.com writes:
> Let me explain: First, changer() is kind of templating language so it
> should be written down in this form - however, it can change during
> run-time as you like. Basically, it is just ordinary python code which
> changes (should change) the local variables of another function,
> run(). Oh, and it has to be *thread-safe*.

That is total madness.  Just use a normal object or dictionary with a lock.



More information about the Python-list mailing list