[Python-Dev] threadsafe patch for asynchat (original) (raw)

Fredrik Lundh fredrik at pythonware.com
Thu Feb 9 13:12:29 CET 2006


Donovan Baarda wrote:

Here I think you meant that medusa didn't handle computation in separate threads instead. No, I pretty much meant what I said :-) Medusa didn't have any concept of a deferred, hence the idea of using one to collect the results of a long computation in another thread never occurred to them... remember the highly refactored OO beauty that is twisted was not even a twinkle in anyone's eye yet. In theory it would be just as easy to add twisted style deferToThread to Medusa, and IMHO it is a much better approach. Unfortunately at the time they went the other way and implemented multiple async-loops in separate threads.

that doesn't mean that everyone using Medusa has done things in the wrong way, of course ;-)



More information about the Python-Dev mailing list