[Python-checkins] peps: PEP 400: don't remove deprecated classes in Python 3.4 anymore

victor.stinner python-checkins at python.org
Fri Oct 21 20:45:59 CEST 2011


http://hg.python.org/peps/rev/b6b1577f9735
changeset:   3969:b6b1577f9735
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Fri Oct 21 20:47:06 2011 +0200
summary:
  PEP 400: don't remove deprecated classes in Python 3.4 anymore

files:
  pep-0400.txt |  16 ++++------------
  1 files changed, 4 insertions(+), 12 deletions(-)


diff --git a/pep-0400.txt b/pep-0400.txt
--- a/pep-0400.txt
+++ b/pep-0400.txt
@@ -61,7 +61,7 @@
   3.3;
 * the legacy codecs.Stream* interfaces, including the streamreader and
   streamwriter attributes of codecs.CodecInfo be deprecated in Python
-  3.3 and removed in Python 3.4.
+  3.3.
 
 
 Rationale
@@ -71,10 +71,6 @@
 ''''''''''''''''''''''''''''''''''''
 
  * StreamReader is unable to translate newlines.
- * StreamReaderWriter handles reads using StreamReader and writes
-   using StreamWriter (as io.BufferedRWPair). These two classes may be
-   inconsistent. To stay consistent, flush() must be called after each
-   write which slows down interlaced read-write.
  * StreamWriter doesn't support "line buffering" (flush if the input
    text contains a newline).
  * StreamReader classes of the CJK encodings (e.g. GB18030) only
@@ -198,15 +194,11 @@
 Deprecate StreamReader and StreamWriter
 '''''''''''''''''''''''''''''''''''''''
 
-Instanciating StreamReader or StreamWriter must raise a
-DeprecationWarning in Python 3.3. Implementing a subclass doesn't
-raise a DeprecationWarning.
+Instanciating StreamReader or StreamWriter must emit a DeprecationWarning in
+Python 3.3. Defining a subclass doesn't emit a DeprecationWarning.
 
 codecs.open() will be changed to reuse the builtin open() function
-(TextIOWrapper).
-
-EncodedFile(), StreamRandom, StreamReader, StreamReaderWriter and
-StreamWriter will be removed in Python 3.4 (or maybe later).
+(TextIOWrapper) to read-write text files.
 
 .. _Appendix A:
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list