diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-30 20:56:00 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-30 20:56:00 (GMT) |
commit | e15dce3d18d333b91a567fb8d611ca74781e4f13 (patch) | |
tree | 332611b0ce447ea367d486b60a122aa897bec6c7 /Doc | |
parent | ebbb3b797297506b91c2b9256bcd0fe92e8b47b8 (diff) | |
download | cpython-e15dce3d18d333b91a567fb8d611ca74781e4f13.zip cpython-e15dce3d18d333b91a567fb8d611ca74781e4f13.tar.gz cpython-e15dce3d18d333b91a567fb8d611ca74781e4f13.tar.bz2 |
Close #12171: IncrementalEncoder.reset() of CJK codecs (multibytecodec) calls
encreset() instead of decreset().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/codecs.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 4d5058e..90bd0dd 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -458,7 +458,8 @@ define in order to be compatible with the Python codec registry. .. method:: reset() - Reset the encoder to the initial state. + Reset the encoder to the initial state. The output is discarded: call + ``.encode('', final=True)`` to reset the encoder and to get the output. .. method:: IncrementalEncoder.getstate() |