From: Mark Wooding Date: Fri, 9 Nov 2018 12:28:16 +0000 (+0000) Subject: bytestring.c: Implement indexing, slicing, concatenation and repeating. X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/commitdiff_plain/ca473903465c8a6e83acee23d7e6bba6b6cb23b9 bytestring.c: Implement indexing, slicing, concatenation and repeating. Now these return bytestring objects, rather than Python strings. --- 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)