mirror of
https://github.com/python/cpython.git
synced 2025-07-27 13:14:41 +00:00
[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 aef95eb107
)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
This commit is contained in:
parent
88a96fc391
commit
dd270f610c
4 changed files with 5 additions and 5 deletions
|
@ -31,3 +31,7 @@ static inline Py_ssize_t PyBytes_GET_SIZE(PyObject *op) {
|
||||||
return Py_SIZE(self);
|
return Py_SIZE(self);
|
||||||
}
|
}
|
||||||
#define PyBytes_GET_SIZE(self) PyBytes_GET_SIZE(_PyObject_CAST(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);
|
||||||
|
|
|
@ -23,10 +23,6 @@ extern PyObject* _PyBytes_FromHex(
|
||||||
PyAPI_FUNC(PyObject*) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
|
PyAPI_FUNC(PyObject*) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
|
||||||
const char *, const char **);
|
const char *, const char **);
|
||||||
|
|
||||||
/* _PyBytes_Join(sep, x) is like sep.join(x). sep must be PyBytesObject*,
|
|
||||||
x must be an iterable object. */
|
|
||||||
extern PyObject* _PyBytes_Join(PyObject *sep, PyObject *x);
|
|
||||||
|
|
||||||
|
|
||||||
// Substring Search.
|
// Substring Search.
|
||||||
//
|
//
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Export private :c:func:`!_PyBytes_Join` again.
|
|
@ -8,7 +8,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
#include "pycore_bytesobject.h" // _PyBytes_Join()
|
|
||||||
#include "pycore_call.h" // _PyObject_CallNoArgs()
|
#include "pycore_call.h" // _PyObject_CallNoArgs()
|
||||||
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
|
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
|
||||||
#include "pycore_pyerrors.h" // _Py_FatalErrorFormat()
|
#include "pycore_pyerrors.h" // _Py_FatalErrorFormat()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue