Nick Coghlan wrote:
What this approach allows you to do is have generic 'transformation' layers in your IO stack, so you can just build up your IO stack as something like:

XMLParserIO('myschema')
BufferedTextIO('utf-8')
BytesTransform('gzip')
RawSocketIO

There's nothing wrong with that, but what it doesn't
answer is why it's not sufficient just to do things
like

from gzip import gzip_codec
stream2 = BytesTransform(gzip_codec, stream1)

i.e. why there has to be a special kind of namespace
for codecs.

--
Greg
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to