This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author giampaolo.rodola
Recipients docs@python, ezio.melotti, giampaolo.rodola
Date 2013-03-16.10:58:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363431539.84.0.0934189958093.issue17437@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-03-16 10:58:59giampaolo.rodolasetrecipients: + giampaolo.rodola, ezio.melotti, docs@python
2013-03-16 10:58:59giampaolo.rodolasetmessageid: <1363431539.84.0.0934189958093.issue17437@psf.upfronthosting.co.za>
2013-03-16 10:58:59giampaolo.rodolalinkissue17437 messages
2013-03-16 10:58:59giampaolo.rodolacreate