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 <>
In Python 2 the distinction between open() and was clear because 'encoding' and 'errors' args were provided by 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 doc [1] should be more clear as to when and why (say), encoding='utf8', errors='ignore') should be preferred over open(file, encoding='utf8', errors='ignore').

Date User Action Args
2013-03-16 10:58:59giampaolo.rodolasetrecipients: + giampaolo.rodola, ezio.melotti, docs@python
2013-03-16 10:58:59giampaolo.rodolasetmessageid: <>
2013-03-16 10:58:59giampaolo.rodolalinkissue17437 messages
2013-03-16 10:58:59giampaolo.rodolacreate