diff options
author | Walter Dörwald <walter@livinglogic.de> | 2008-10-23 13:11:39 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2008-10-23 13:11:39 (GMT) |
commit | 611e48c1bb79748570b5cb883a6b6ff520e2354e (patch) | |
tree | 90370d72358af9abefcbac68d0039abb21225d9b /Doc/library | |
parent | 592c2755677d77061ceb99607c10fa7d70e5c2dd (diff) | |
download | cpython-611e48c1bb79748570b5cb883a6b6ff520e2354e.zip cpython-611e48c1bb79748570b5cb883a6b6ff520e2354e.tar.gz cpython-611e48c1bb79748570b5cb883a6b6ff520e2354e.tar.bz2 |
Use the correct names of the stateless codec functions (Fixes issue 4178).
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/codecs.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index cd9690e..c58505a 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -32,9 +32,9 @@ It defines the following functions: * ``name`` The name of the encoding; - * ``encoder`` The stateless encoding function; + * ``encode`` The stateless encoding function; - * ``decoder`` The stateless decoding function; + * ``decode`` The stateless decoding function; * ``incrementalencoder`` An incremental encoder class or factory function; @@ -46,7 +46,7 @@ It defines the following functions: The various functions or classes take the following arguments: - *encoder* and *decoder*: These must be functions or methods which have the same + *encode* and *decode*: These must be functions or methods which have the same interface as the :meth:`encode`/:meth:`decode` methods of Codec instances (see Codec Interface). The functions/methods are expected to work in a stateless mode. |