[Python-Dev] Improve open() to support reading file starting with an unicode BOM (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Fri Jan 8 15:34:26 CET 2010
- Previous message: [Python-Dev] Improve open() to support reading file starting with an unicode BOM
- Next message: [Python-Dev] Improve open() to support reading file starting with an unicode BOM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Victor Stinner <victor.stinner haypocalc.com> writes:
I wrote a new version of my patch (version 3): * don't change the default behaviour: use open(filename, encoding="BOM") to check the BOM is there is any
Well, I think if we implement this the default behaviour should be changed. It looks a bit senseless to have two different "auto-choose" options, one with encoding=None and one with encoding="BOM".
Regards
Antoine.
- Previous message: [Python-Dev] Improve open() to support reading file starting with an unicode BOM
- Next message: [Python-Dev] Improve open() to support reading file starting with an unicode BOM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]