module similar to Perl Net::Server

Andrew Bennetts andrew-pythonlist at
Wed Feb 5 13:33:18 CET 2003

On Wed, Feb 05, 2003 at 02:53:57PM +0300, rayed wrote:
> Thanks Andrew,
> These are really nice features, but it add more complexity to the program.

Well, I think you'll find that Twisted will decrease your overall complexity
-- partly because it *is* asynchronous.  Not dealing with threads saves me
so much time (calling deferToThread doesn't count as dealing with threads,
because Twisted does it for you :).

On the other hand, event-driven asynchronous programming is a bit different
to normal synchronous programming, and so if you've already got alot of code
written it can be alot of effort to switch.

It depends on what you're doing.  But in general, I'd much rather work with
Twisted than fork or use threads.  (Although I've written Twisted servers
that fork, and Twisted servers that use threads...)

Out of curiousity, what sort of server are you writing?


More information about the Python-list mailing list