bytestring.c: Implement indexing, slicing, concatenation and repeating.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 9 Nov 2018 12:28:16 +0000 (12:28 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 10 Nov 2018 01:30:58 +0000 (01:30 +0000)
Now these return bytestring objects, rather than Python strings.

catacomb-python.h

index bbb5fac..364a3c9 100644 (file)
 } 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)