Skip to content
Snippets Groups Projects
Commit aacddd83 authored by Jan Hoenig's avatar Jan Hoenig
Browse files

Fixed types

parent e8286130
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment