From ad7d8d10b70b62b25fc8ebd1a6bfef0c008a232a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 13 Apr 2007 01:39:34 +0000 Subject: Rough and dirty job -- allow concatenation of bytes and arbitrary buffer-supporting objects (Unicode always excluded), and also of str and bytes. (For some reason u"" + b"" doesn't fail, I'll investigate later.) --- Include/bytesobject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/bytesobject.h') diff --git a/Include/bytesobject.h b/Include/bytesobject.h index 849078d4f8..bc385c1dd7 100644 --- a/Include/bytesobject.h +++ b/Include/bytesobject.h @@ -34,6 +34,7 @@ PyAPI_DATA(PyTypeObject) PyBytes_Type; /* Direct API functions */ PyAPI_FUNC(PyObject *) PyBytes_FromObject(PyObject *); +PyAPI_FUNC(PyObject *) PyBytes_Concat(PyObject *, PyObject *); PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t); PyAPI_FUNC(Py_ssize_t) PyBytes_Size(PyObject *); PyAPI_FUNC(char *) PyBytes_AsString(PyObject *); -- cgit v1.2.1