List Info

Thread: Re: XML codec?




Re: XML codec?
country flaguser name
Germany
2007-11-09 18:25:11
Martin v. Löwis wrote:
>> Not really, but the codec has more control over
what happens to
>> the stream, ie. it's easier to implement look-ahead
in the codec
>> than to do the detection and then try to push the
bytes back onto
>> the stream (which may or may not be possible
depending on the
>> nature of the stream).
> 
> YAGNI.

A non-seekable stream is not all that uncommon in network
processing.
I usually end up either reading the complete data into
memory
or doing the needed buffering by hand.

Regards,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1,
Nov 10 2007)
>>> Python/Zope Consulting and Support ...       
http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
____________________________________________________________
____________

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for
free ! ::::


   eGenix.com Software, Skills and Services GmbH 
Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre
Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
_______________________________________________
Python-Dev mailing list
Python-Devpython.org
ht
tp://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/p
ython-dev/nessto%40sharedlog.com

Re: XML codec?
user name
2007-11-10 02:54:04
> A non-seekable stream is not all that uncommon in
network processing.

Right. But what is the relationship to XML encoding
autodetection?

Regards,
Martin

_______________________________________________
Python-Dev mailing list
Python-Devpython.org
ht
tp://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/p
ython-dev/nessto%40sharedlog.com

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )