STINNER Victor <victor.stin...@haypocalc.com> added the comment:

deprecate_codecs.patch: "Deprecate open(), StreamReader, StreamWriter, 
StreamReaderWriter, StreamRecord and EncodedFile() of the codec module. Use the 
builtin open() function or io.TextIOWrapper instead."

EncodedFile() and StreamRecord cannot be replaced easily by open() or 
TextIOWrapper. But do we still need this function? In 2002, Martin von Loewis 
wrote "I never found this class useful."
http://mail.python.org/pipermail/python-dev/2002-August/027491.html

It is maybe no more useful with Python 3 which process all text data as 
Unicode, copy/paste of the mail thread:
------------
> In a well-designed designed application, you should not need to say
> this. The inside world should use Unicode objects.

Agreed, but if you want to port an existing application to
the Unicode world, it sometimes helps.
------------

Deprecated in Python 3.3, the related code will be removed in Python 3.4.

----------
keywords: +patch
Added file: http://bugs.python.org/file22081/deprecate_codecs.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8796>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to