[Twisted-Python] callback conventions

Syver Enstad syver at inout.no
Wed Aug 6 03:50:12 MDT 2003


"Matthew R. Scott" <twisted at goldenspud.com> writes:

> Others may already use this, but we speculated that the reason it is not in 
> widespread use is because prior to python2.2 the scoping rules for 
> functions-inside-functions made it more difficult to do this easily.

That is true. Out of the box only 2.2 an onwards have nested scopes
(you could enable them with a from __future__ in 2.1

That said coincidences had it that I just starting doing local
function as deferred callbacks yesterday.





More information about the Twisted-Python mailing list