Author serhiy.storchaka
Recipients ezio.melotti, lemburg, serhiy.storchaka, vstinner
Date 2017-03-10.14:33:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489156391.73.0.135070139744.issue29783@psf.upfronthosting.co.za>
In-reply-to
Content
codecs.open() works with bytes-to-bytes codecs.

>>> f = codecs.open('test1', 'w', encoding='hex_codec')
>>> f.write(b'hello')
>>> f.close()
>>> open('test1', 'rb').read()
b'68656c6c6f'

In additional the interface of StreamReaderWriter is not fully compatible with the interface of io classes. This would be compatible-breaking change.
History
Date User Action Args
2017-03-10 14:33:11serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, vstinner, ezio.melotti
2017-03-10 14:33:11serhiy.storchakasetmessageid: <1489156391.73.0.135070139744.issue29783@psf.upfronthosting.co.za>
2017-03-10 14:33:11serhiy.storchakalinkissue29783 messages
2017-03-10 14:33:11serhiy.storchakacreate