chiark
/
gitweb
/
~mdw
/
pyke
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0fed227
)
bytestring.c: Implement indexing, slicing, concatenation and repeating.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 9 Nov 2018 12:28:16 +0000
(12:28 +0000)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/catacomb-python.h
b/catacomb-python.h
index bbb5fac76e41388fc10a81e7010427cae8a05822..364a3c9ad8c159239b9cb9991c66ba6d012084a4 100644
(file)
--- 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)