Skip to content

Commit dd270f6

Browse files
[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 aef95eb) Co-authored-by: Marc Mueller <[email protected]>
1 parent 88a96fc commit dd270f6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Include/cpython/bytesobject.h

+4
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ static inline Py_ssize_t PyBytes_GET_SIZE(PyObject *op) {
3131
return Py_SIZE(self);
3232
}
3333
#define PyBytes_GET_SIZE(self) PyBytes_GET_SIZE(_PyObject_CAST(self))
34+
35+
/* _PyBytes_Join(sep, x) is like sep.join(x). sep must be PyBytesObject*,
36+
x must be an iterable object. */
37+
PyAPI_FUNC(PyObject*) _PyBytes_Join(PyObject *sep, PyObject *x);

Include/internal/pycore_bytesobject.h

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ extern PyObject* _PyBytes_FromHex(
2323
PyAPI_FUNC(PyObject*) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
2424
const char *, const char **);
2525

26-
/* _PyBytes_Join(sep, x) is like sep.join(x). sep must be PyBytesObject*,
27-
x must be an iterable object. */
28-
extern PyObject* _PyBytes_Join(PyObject *sep, PyObject *x);
29-
3026

3127
// Substring Search.
3228
//
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Export private :c:func:`!_PyBytes_Join` again.

Modules/_io/bufferedio.c

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99

1010
#include "Python.h"
11-
#include "pycore_bytesobject.h" // _PyBytes_Join()
1211
#include "pycore_call.h" // _PyObject_CallNoArgs()
1312
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
1413
#include "pycore_pyerrors.h" // _Py_FatalErrorFormat()

0 commit comments

Comments
 (0)