From: Mark Wooding Date: Fri, 29 May 2015 08:34:09 +0000 (+0100) Subject: Use ValueError instead of SyntaxError throughout. X-Git-Url: https://git.distorted.org.uk/~mdw/pyke/commitdiff_plain/b49788b66c068a9cce169ac854b863dd513a2986 Use ValueError instead of SyntaxError throughout. SyntaxError has a much more specific meaning, and some software, such as `ipython', expect it to carry lots of other detailed information. So abolish the `SYNERR' macro, and use `VALERR' instead consistently. I wish I had an excuse for this blunder, but I don't. --- diff --git a/catacomb-python.h b/catacomb-python.h index bb84a74..b287450 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -128,7 +128,6 @@ #define VALERR(str) EXCERR(PyExc_ValueError, str) #define TYERR(str) EXCERR(PyExc_TypeError, str) #define ZDIVERR(str) EXCERR(PyExc_ZeroDivisionError, str) -#define SYNERR(str) EXCERR(PyExc_SyntaxError, str) #define SYSERR(str) EXCERR(PyExc_SystemError, str) #define NIERR(str) EXCERR(PyExc_NotImplementedError, str) #define INDEXERR(idx) do { \