diff Include/bytesobject.h @ 41450:d1c3dd184e38

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.)
author Guido van Rossum <guido@python.org>
date Fri, 13 Apr 2007 01:39:34 +0000
parents a6a1359aab84
children 72fc7d029d3d
line wrap: on
line diff
--- a/Include/bytesobject.h	Thu Apr 12 22:55:07 2007 +0000
+++ b/Include/bytesobject.h	Fri Apr 13 01:39:34 2007 +0000
@@ -34,6 +34,7 @@
 
 /* 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 *);