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? _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
