BOM should be ignored by Python
neilh at scintilla.org
Mon May 1 20:27:10 EDT 2000
> I believe this was discussed on python-dev, and decided that Python itself
> should not handle BOM markers at all - simply leave them to the app. It
> would be a little painful to change the Python file read semantics to
> handle this only when reading the first 2 bytes of a disk-based file.
> Further, Python would need to maintain the BOM read for a particular
> stream, so it can be applied to later, potentially disjointed reads of the
Damn. I expressed this badly.
I'm not interested in changing Python's file reading, just the way it
handles Python scripts.
More information about the Python-list