summaryrefslogtreecommitdiffstats
path: root/Include/cpython/bytesobject.h
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-07-25 16:06:31 (GMT)
committerGitHub <noreply@github.com>2024-07-25 16:06:31 (GMT)
commitdd270f610c40037f298e55e7ec2e0637563a8cfc (patch)
tree245ff2f77f82bbf576d0dfe9e335ee121569edab /Include/cpython/bytesobject.h
parent88a96fc391d36f537a613c6efbe5980080156fea (diff)
downloadcpython-dd270f610c40037f298e55e7ec2e0637563a8cfc.zip
cpython-dd270f610c40037f298e55e7ec2e0637563a8cfc.tar.gz
cpython-dd270f610c40037f298e55e7ec2e0637563a8cfc.tar.bz2
[3.13] gh-121489: Export private _PyBytes_Join() again (GH-122267) (#122287)
gh-121489: Export private _PyBytes_Join() again (GH-122267) (cherry picked from commit aef95eb107fef9355c66461612aedd31265f8c21) Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Diffstat (limited to 'Include/cpython/bytesobject.h')
-rw-r--r--Include/cpython/bytesobject.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/cpython/bytesobject.h b/Include/cpython/bytesobject.h
index 8168237..4153721 100644
--- a/Include/cpython/bytesobject.h
+++ b/Include/cpython/bytesobject.h
@@ -31,3 +31,7 @@ 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);