[Python-Dev] Improve open() to support reading file starting with an unicode BOM

Antoine Pitrou solipsis at pitrou.net
Mon Jan 11 13:39:33 CET 2010

> However if this autodetection feature is useful in other cases (no
> matter how it's activated), it should be a codec, because as part of the
> open() function it isn't reusable.

It is reusable as part of io.TextIOWrapper, though.



More information about the Python-Dev mailing list