summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/concrete.rst
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-10-26 19:34:40 (GMT)
committerGuido van Rossum <guido@python.org>2007-10-26 19:34:40 (GMT)
commita2074f0bd75b5e08a6f9094dc30c26e2252e3747 (patch)
tree51f98538555526a232fce5e2ea3c3697407a5e50 /Doc/c-api/concrete.rst
parent35d02c1649e577a142e769159b2da9f395e30c29 (diff)
downloadcpython-a2074f0bd75b5e08a6f9094dc30c26e2252e3747.zip
cpython-a2074f0bd75b5e08a6f9094dc30c26e2252e3747.tar.gz
cpython-a2074f0bd75b5e08a6f9094dc30c26e2252e3747.tar.bz2
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.rst9
1 files changed, 0 insertions, 9 deletions
diff --git a/Doc/c-api/concrete.rst b/Doc/c-api/concrete.rst
index f492f16..cdea26f 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