[Python-checkins] peps: PEP 400: add the alternative suggested by Marc-Andre Lemburg.

victor.stinner python-checkins at python.org
Fri Jul 29 14:25:05 CEST 2011


http://hg.python.org/peps/rev/6cf74732766a
changeset:   3916:6cf74732766a
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Fri Jul 29 14:24:42 2011 +0200
summary:
  PEP 400: add the alternative suggested by Marc-Andre Lemburg.

files:
  pep-0400.txt |  8 ++++++++
  1 files changed, 8 insertions(+), 0 deletions(-)


diff --git a/pep-0400.txt b/pep-0400.txt
--- a/pep-0400.txt
+++ b/pep-0400.txt
@@ -210,6 +210,14 @@
 
 .. _Appendix A:
 
+Alternative Approache
+=====================
+
+An alternative to the deprecation of the codecs.Stream* classes is to rename
+codecs.open() to codecs.open_stream(), and to create a new codecs.open()
+function reusing open() and so io.TextIOWrapper.
+
+
 Appendix A: Issues with stateful codecs
 =======================================
 

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


More information about the Python-checkins mailing list