diff --git a/pep-0400.txt b/pep-0400.txt index 88ec1d03c..baf5e4afe 100644 --- a/pep-0400.txt +++ b/pep-0400.txt @@ -19,7 +19,7 @@ StreamReaderWriter. Duplicate code means that bugs should be fixed twice and that we may have subtle differences between the two implementations. -The codecs modules was introduced in Python 2.0, see the PEP 100. The +The codecs module was introduced in Python 2.0, see the PEP 100. The io module was introduced in Python 2.6 and 3.0 (see the PEP 3116), and reimplemented in C in Python 2.7 and 3.1. @@ -143,10 +143,10 @@ TextIOWrapper issues Possible improvements of StreamReader and StreamWriter '''''''''''''''''''''''''''''''''''''''''''''''''''''' -It would be possible to add functions to StreamReader and StreamWriter -to give access to the state of codec. And so it would be possible fix -issues with stateful codecs in a base class instead of having to fix -them is each stateful StreamReader and StreamWriter classes. +By adding codec state read/write functions to the StreamReader and +StreamWriter classes, it will become possible to fix issues with +stateful codecs in a base class instead of in each stateful +StreamReader and StreamWriter classes. It would be possible to change StreamReader and StreamWriter to make them use IncrementalDecoder and IncrementalEncoder. @@ -196,9 +196,9 @@ codecs.open() is kept for backward compatibility with Python 2. Deprecate StreamReader and StreamWriter ''''''''''''''''''''''''''''''''''''''' -Instanciate StreamReader or StreamWriter must raise a -DeprecationWarning in Python 3.3. Implement a subclass don't raise a -DeprecationWarning. +Instanciating StreamReader or StreamWriter must raise a +DeprecationWarning in Python 3.3. Implementing a subclass doesn't +raise a DeprecationWarning. codecs.open() will be changed to reuse the builtin open() function (TextIOWrapper).