Message184303
In Python 2 the distinction between open() and codes.open() was clear because 'encoding' and 'errors' args were provided by codecs.open only.
This is no longer the case in Python 3 since both args are provided also by open().
I'm probably missing something but regardless I think codecs.open doc [1] should be more clear as to when and why (say) codecs.open(file, encoding='utf8', errors='ignore') should be preferred over open(file, encoding='utf8', errors='ignore').
[1] http://docs.python.org/3/library/codecs.html#codecs.open |
|
Date |
User |
Action |
Args |
2013-03-16 10:58:59 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, ezio.melotti, docs@python |
2013-03-16 10:58:59 | giampaolo.rodola | set | messageid: <1363431539.84.0.0934189958093.issue17437@psf.upfronthosting.co.za> |
2013-03-16 10:58:59 | giampaolo.rodola | link | issue17437 messages |
2013-03-16 10:58:59 | giampaolo.rodola | create | |
|