[Python-3000] revamping the io stack, part 2
Antoine Pitrou
solipsis at pitrou.net
Sun Apr 30 17:43:52 CEST 2006
Le samedi 29 avril 2006 à 21:10 +0200, tomer filiba a écrit :
> and if we do that already, perhaps we should introduce async
> operations as a
> built-in feature? .NET does (BeginRead, EndRead, etc.)
> def async_read(self, count, callback)
> def async_write(self, data, callback)
I think many people would be happy if the proposal would use the
Deferred abstraction which is built in Twisted. :-)
> many protocols can also be represented as codecs. textual protocols,
> like
> HTTP or SMTP, can be easily implemented that way:
>
> class HttpClientCodec( *TextCodec* ):
> def __init__(self, stream):
> TextCodec.__init__(self, stream, textcodec = "ascii")
HTTP can transport binary (non-text) data as well, while having text
headers. How does your proposal address this point?
More information about the Python-3000
mailing list