diff options
author | Guido van Rossum <guido@python.org> | 2007-10-26 19:34:40 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-26 19:34:40 +0000 |
commit | 5b29a6cd1240e6c34cdb9362cb1b57268366fb90 (patch) | |
tree | c4682e35f0cf46b53f1b8cea4ce75075d360d8e5 /Doc/c-api/concrete.rst | |
parent | 9398d48c049dd6d24641ea355dbb0d628af9e776 (diff) | |
download | cpython-5b29a6cd1240e6c34cdb9362cb1b57268366fb90.tar.gz |
Kill PyString_Encode(), which isn't used anywhere.
(We should also kill the other PyString_ encode/decode APIs, but they
still have some users.)
Diffstat (limited to 'Doc/c-api/concrete.rst')
-rw-r--r-- | Doc/c-api/concrete.rst | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Doc/c-api/concrete.rst b/Doc/c-api/concrete.rst index f492f160fc..cdea26f1bc 100644 --- a/Doc/c-api/concrete.rst +++ b/Doc/c-api/concrete.rst @@ -874,15 +874,6 @@ called with a non-string parameter. if an exception was raised by the codec. -.. cfunction:: PyObject* PyString_Encode(const char *s, Py_ssize_t size, const char *encoding, const char *errors) - - Encode the :ctype:`char` buffer of the given size by passing it to the codec - registered for *encoding* and return a Python object. *encoding* and *errors* - have the same meaning as the parameters of the same name in the string - :meth:`encode` method. The codec to be used is looked up using the Python codec - registry. Return *NULL* if an exception was raised by the codec. - - .. cfunction:: PyObject* PyString_AsEncodedObject(PyObject *str, const char *encoding, const char *errors) Encode a string object using the codec registered for *encoding* and return the |