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 serhiy.storchaka
Recipients ezio.melotti, lemburg, serhiy.storchaka, vstinner
Date 2017-03-10.16:17:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489162660.81.0.0687037339314.issue29783@psf.upfronthosting.co.za>
In-reply-to
Content
I think using codecs.open() with a non-text codecs is a legit use case, but is not the best way. I suggest:

1) Encourage of using io.open() rather than codecs.open() for text encodings. codecs.open() was recommended way since it worked in all Python versions, including <2.6, but now we can ignore this advantage.

2) Discourage of using non-text codecs.

3) Deprecate codecs.open() (may be after EOL for Python 2.7).
History
Date User Action Args
2017-03-10 16:17:40serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, vstinner, ezio.melotti
2017-03-10 16:17:40serhiy.storchakasetmessageid: <1489162660.81.0.0687037339314.issue29783@psf.upfronthosting.co.za>
2017-03-10 16:17:40serhiy.storchakalinkissue29783 messages
2017-03-10 16:17:40serhiy.storchakacreate