[Python-Dev] XML codec?

Fred Drake fdrake at acm.org
Mon Nov 12 17:01:53 CET 2007


On Nov 12, 2007, at 10:54 AM, Bill Janssen wrote:
> In os.path?  os.path.encoding(location)?


I wasn't thinking it would be that general; determining the encoding  
for an arbitrary text file is a larger problem than it is for an XML  
file.

An implementation based strictly on the rules from the XML  
specification should be in the xml package (somewhere).  Determining  
that the file is an XML file is separate.

I doubt this really makes sense in os.path.


   -Fred

-- 
Fred Drake   <fdrake at acm.org>






More information about the Python-Dev mailing list