Message97406
New version of the patch which is shorter, cleaner, fix the last bug (seek) and don't change the default behaviour anymore (checking for BOM is now explicit):
* BOM checking is now optional (explicit): use open(filename, encoding="BOM"). open(filename, "w", encoding="BOM") raises a ValueError.
* Create a BOMS dictionary directly in the codecs module
* Fix TextIOWrapper for seek(0) (add _has_bom attribute)
* Add an unit test for read() and readlines()
* Read the encoding property before the first read gives None
I also removed the _get_encoding() method (hack). |
|
Date |
User |
Action |
Args |
2010-01-08 10:23:49 | vstinner | set | recipients:
+ vstinner, pitrou |
2010-01-08 10:23:48 | vstinner | set | messageid: <1262946228.21.0.698183448117.issue7651@psf.upfronthosting.co.za> |
2010-01-08 10:23:46 | vstinner | link | issue7651 messages |
2010-01-08 10:23:45 | vstinner | create | |
|