From ca473903465c8a6e83acee23d7e6bba6b6cb23b9 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 9 Nov 2018 12:28:16 +0000 Subject: [PATCH 1/1] bytestring.c: Implement indexing, slicing, concatenation and repeating. Now these return bytestring objects, rather than Python strings. --- catacomb-python.h | 1 + 1 file changed, 1 insertion(+) diff --git a/catacomb-python.h b/catacomb-python.h index bbb5fac..364a3c9 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -134,6 +134,7 @@ } while (0) #define VALERR(str) EXCERR(PyExc_ValueError, str) #define TYERR(str) EXCERR(PyExc_TypeError, str) +#define IXERR(str) EXCERR(PyExc_IndexError, str) #define ZDIVERR(str) EXCERR(PyExc_ZeroDivisionError, str) #define SYSERR(str) EXCERR(PyExc_SystemError, str) #define NIERR(str) EXCERR(PyExc_NotImplementedError, str) -- 2.11.0