[Twisted-Python] Twisted in Python STDLIB?
andrew-twisted at puzzling.org
Tue Oct 12 08:06:01 EDT 2004
On Mon, Oct 11, 2004 at 11:48:27PM +0000, exarkun at divmod.com wrote:
> s = socket.socket()
> p = imap4.IMAP4Client()
> t = CrummyTCPTransport(s, p)
> Reasonable? Crappy? Anyway, that's how I've always seen a simplistic,
> reactorless program using Twisted protocols. It's ugly, but I think it
> should work (and compare it to trying to make a stdlib protocol
> implementation work with Twisted!)
Well, it'll work for single-socket protocols. It won't work for, say, FTP.
Of course, there's a reason why we wrote a framework ;)
More information about the Twisted-Python