summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2015-05-21 21:27:11 +0200
committerStefan Behnel <stefan_ml@behnel.de>2015-05-22 07:49:09 +0200
commit711059f347d17198af7445f63ba29d7d5e89ab3a (patch)
tree78229a5f7977829fbedc191ea5d190460c64962b
parent0a6611ef7a69ef161b6a5a0a33061cded6732385 (diff)
downloadcython-711059f347d17198af7445f63ba29d7d5e89ab3a.tar.gz
show "except *" declaration in error messages to help distinguishing between incompatible types
-rw-r--r--Cython/Compiler/PyrexTypes.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py
index b1dd184da..514d48524 100644
--- a/Cython/Compiler/PyrexTypes.py
+++ b/Cython/Compiler/PyrexTypes.py
@@ -2710,8 +2710,9 @@ class CFuncType(CType):
trailer = " except %s" % self.exception_value
elif self.exception_check == '+':
trailer = " except +"
- else:
- " except *" # ignored
+ elif self.exception_check and for_display:
+ # not spelled out by default, unless for human eyes
+ trailer = " except *"
if self.nogil:
trailer += " nogil"
if not with_calling_convention: