From b49788b66c068a9cce169ac854b863dd513a2986 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 29 May 2015 09:34:09 +0100 Subject: [PATCH] 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. --- catacomb-python.h | 1 - 1 file changed, 1 deletion(-) 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 { \ -- 2.11.0