PEP 400: add the alternative suggested by Marc-Andre Lemburg.

This commit is contained in:
Victor Stinner 2011-07-29 14:24:42 +02:00
parent e1bde7af99
commit 381a39bfd1
1 changed files with 8 additions and 0 deletions

View File

@ -210,6 +210,14 @@ StreamWriter will be removed in Python 3.4 (or maybe later).
.. _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
=======================================