]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use the correct names of the stateless codec functions (Fixes issue 4178).
authorWalter Dörwald <walter@livinglogic.de>
Thu, 23 Oct 2008 13:11:39 +0000 (13:11 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Thu, 23 Oct 2008 13:11:39 +0000 (13:11 +0000)
Doc/library/codecs.rst

index cd9690e0ea18edadf158fe71336c2b8e973957e6..c58505a4d2529395ab99280bbfd65a3cf092c9c5 100644 (file)
@@ -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.