[Twisted-Python] SQLAlchemy and Twisted

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Fri May 7 12:35:58 MDT 2010


On 03:37 pm, drwxrwxr.x+twistedmail at gmail.com wrote:
>>(yield resultset[10:20]).sort(Sort.ASC)
>>
>>assuming a new enough version of Python.
>
>I wonder if it a good idea to subclass Deferred and define __call__()
>for it, making it attach callbacks to itself.
>Theoretically should work in earlier versions and make the syntax look
>more transparent.

Let me clear that up for you, then.

No, this is not a good idea. :)

Jean-Paul




More information about the Twisted-Python mailing list