summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-23 20:10:12 (GMT)
committerGitHub <noreply@github.com>2023-07-23 20:10:12 (GMT)
commit7d41ead9191a18bc473534f6f8bd1095f2232cc2 (patch)
tree88fbc75fdfd4158da7321ef308c537a66a55af4d /Include/cpython
parent0d6dfd68d22762c115d202515fe3310bfb42e327 (diff)
downloadcpython-7d41ead9191a18bc473534f6f8bd1095f2232cc2.zip
cpython-7d41ead9191a18bc473534f6f8bd1095f2232cc2.tar.gz
cpython-7d41ead9191a18bc473534f6f8bd1095f2232cc2.tar.bz2
gh-106320: Remove _PyBytes_Join() C API (#107144)
Move private _PyBytes functions to the internal C API (pycore_bytesobject.h): * _PyBytes_DecodeEscape() * _PyBytes_FormatEx() * _PyBytes_FromHex() * _PyBytes_Join() No longer export these functions.
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/bytesobject.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/Include/cpython/bytesobject.h b/Include/cpython/bytesobject.h
index 0af4c83..8168237 100644
--- a/Include/cpython/bytesobject.h
+++ b/Include/cpython/bytesobject.h
@@ -15,18 +15,6 @@ typedef struct {
} PyBytesObject;
PyAPI_FUNC(int) _PyBytes_Resize(PyObject **, Py_ssize_t);
-PyAPI_FUNC(PyObject*) _PyBytes_FormatEx(
- const char *format,
- Py_ssize_t format_len,
- PyObject *args,
- int use_bytearray);
-PyAPI_FUNC(PyObject*) _PyBytes_FromHex(
- PyObject *string,
- int use_bytearray);
-
-/* Helper for PyBytes_DecodeEscape that detects invalid escape chars. */
-PyAPI_FUNC(PyObject *) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
- const char *, const char **);
/* Macros and static inline functions, trading safety for speed */
#define _PyBytes_CAST(op) \
@@ -43,7 +31,3 @@ static inline Py_ssize_t PyBytes_GET_SIZE(PyObject *op) {
return Py_SIZE(self);
}
#define PyBytes_GET_SIZE(self) PyBytes_GET_SIZE(_PyObject_CAST(self))
-
-/* _PyBytes_Join(sep, x) is like sep.join(x). sep must be PyBytesObject*,
- x must be an iterable object. */
-PyAPI_FUNC(PyObject *) _PyBytes_Join(PyObject *sep, PyObject *x);