From aacddd839cedd5e89079d4cb99279973c281b09a Mon Sep 17 00:00:00 2001 From: Jan Hoenig <hrominium@gmail.com> Date: Mon, 20 Mar 2017 18:42:32 +0100 Subject: [PATCH] Fixed types --- types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.py b/types.py index 61f2fc63a..ef7763778 100644 --- a/types.py +++ b/types.py @@ -259,7 +259,7 @@ class BasicType(Type): def is_other(self): return self.numpyDtype in np.sctypes['others'] - def __repr__(self): + def __str__(self): result = BasicType.numpyNameToC(str(self._dtype)) if self.const: result += " const" @@ -302,7 +302,7 @@ class PointerType(Type): else: return (self.baseType, self.const, self.restrict) == (other.baseType, other.const, other.restrict) - def __repr__(self): + def __str__(self): return "%s * %s%s" % (self.baseType, "RESTRICT " if self.restrict else "", "const " if self.const else "") def __hash__(self): -- GitLab