Commit 7272a40d authored by Mark Florisson's avatar Mark Florisson

Transfer some fixes from the _fused_dispatch branch

parent c4a21c58
...@@ -2584,7 +2584,7 @@ def __pyx_fused_cpdef(signatures, args, kwargs): ...@@ -2584,7 +2584,7 @@ def __pyx_fused_cpdef(signatures, args, kwargs):
candidates = [] candidates = []
for sig in signatures: for sig in signatures:
match_found = True match_found = filter(None, dest_sig)
for src_type, dst_type in zip(sig.strip('()').split(', '), dest_sig): for src_type, dst_type in zip(sig.strip('()').split(', '), dest_sig):
if dst_type is not None and match_found: if dst_type is not None and match_found:
match_found = src_type == dst_type match_found = src_type == dst_type
......
...@@ -781,8 +781,11 @@ class BufferType(BaseType): ...@@ -781,8 +781,11 @@ class BufferType(BaseType):
return "<BufferType %r>" % self.base return "<BufferType %r>" % self.base
def __str__(self): def __str__(self):
cast_str = ', cast=True' if self.cast else '' if self.cast:
return "%s[%s, ndim=%d%s]" % (self.base, self.dtype, self.ndim, cast_str = ',cast=True'
else:
cast_str = ''
return "%s[%s,ndim=%d%s]" % (self.base, self.dtype, self.ndim,
cast_str) cast_str)
class PyObjectType(PyrexType): class PyObjectType(PyrexType):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment