[Python-Dev] Draft PEP: Deprecate codecs.StreamReader and codecs.StreamWriter
Nick Coghlan
ncoghlan at gmail.com
Thu Jul 7 05:26:20 CEST 2011
On Thu, Jul 7, 2011 at 11:16 AM, Benjamin Peterson <benjamin at python.org> wrote:
> 2011/7/6 Victor Stinner <victor.stinner at haypocalc.com>:
>> codecs.open() will be changed to reuse the builtin open() function
>> (TextIOWrapper).
>
> This doesn't strike me as particularly backwards compatible, since
> you've just enumerated the differences between StreamWriter/Reader and
> TextIOWrapper.
The API of the resulting object is the same (i.e. they're file-like
objects). The behavioural differences are due to cases where the
codec-specific classes are currently broken.
Victor, could you please check this into the PEPs repo? It's easier to
reference once it has a real number.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-Dev
mailing list