[Python-Dev] XML codec?
Walter Dörwald
walter at livinglogic.de
Sat Nov 10 17:15:29 CET 2007
More information about the Python-Dev mailing list
Sat Nov 10 17:15:29 CET 2007
- Previous message: [Python-Dev] XML codec?
- Next message: [Python-Dev] XML codec?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Martin v. Löwis" sagte: >> And what do you do once you've detected the encoding? You decode the >> input, so why not combine both into an XML decoder? > > Because it is the XML parser that does the decoding, not the > application. Also, it is better to provide functionality in > a modular manner (i.e. encoding detection separately from > encodings), It is separate. Detection is done by codecs.detect_xml_encoding(), decoding is done by the codec. > and leaving integration of modules to the application, > in particular if the integration is trivial. Servus, Walter
- Previous message: [Python-Dev] XML codec?
- Next message: [Python-Dev] XML codec?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list