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 ncoghlan
Recipients benjamin.peterson, ezio.melotti, hynek, lemburg, ncoghlan, pitrou, serhiy.storchaka, stutzbach, vstinner
Date 2014-01-27.07:25:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390807506.66.0.764675005243.issue20405@psf.upfronthosting.co.za>
In-reply-to
Content
That's certainly a reasonable position to take - they use the same object->object model that the codecs module in general provides, which means Python 3.x can already handle the relevant use cases.

Any such PEP would be about deciding whether or not binary transforms are a case worth having additional infrastructure to support, or whether we just say that anyone wanting to deal with codecs other than test encodings should use the type neutral codec APIs.

In the latter case, all that would be needed is a simple "is_text_encoding" flag, inspired by the private flag we already added to implement the non-text-encoding blacklist in 3.4.
History
Date User Action Args
2014-01-27 07:25:06ncoghlansetrecipients: + ncoghlan, lemburg, pitrou, vstinner, benjamin.peterson, stutzbach, ezio.melotti, hynek, serhiy.storchaka
2014-01-27 07:25:06ncoghlansetmessageid: <1390807506.66.0.764675005243.issue20405@psf.upfronthosting.co.za>
2014-01-27 07:25:06ncoghlanlinkissue20405 messages
2014-01-27 07:25:06ncoghlancreate