[Python-Dev] XML codec? (original) (raw)
Fred Drake fdrake at acm.org
Fri Nov 9 15:15:50 CET 2007
- Previous message: [Python-Dev] XML codec?
- Next message: [Python-Dev] XML codec?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Nov 9, 2007, at 8:22 AM, M.-A. Lemburg wrote:
FWIW: I'm +1 on adding such a codec.
I'm undecided, and really don't feel strongly either way.
It makes working with XML data a lot easier: you simply don't have to bother with the encoding of the XML data anymore and can just let the codec figure out the details. The XML parser can then work directly on the Unicode data.
Which is fine if you want to write a new parser. I've no interest in
that myself.
Whether it needs to be in C or not is another question (I would have done this in Python since performance is not really an issue), but since the code is already written, why not use it ?
The reason not to use C is the usual one: The implementation is more
cross-implementation if it's written in Python. This makes it more
useful with Jython, IronPython, and PyPy.
That seems a pretty good reason to me.
-Fred
-- Fred Drake
- Previous message: [Python-Dev] XML codec?
- Next message: [Python-Dev] XML codec?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]