Commit 1634fc73 authored by Robert Bradshaw's avatar Robert Bradshaw

re-enable fast isinstance

parent 92a052eb
......@@ -162,7 +162,7 @@ class FinalOptimizePhase(Visitor.CythonTransform):
def visit_SimpleCallNode(self, node):
self.visitchildren(node)
if 0 and node.function.type.is_cfunction and isinstance(node.function, ExprNodes.NameNode):
if node.function.type.is_cfunction and isinstance(node.function, ExprNodes.NameNode):
if node.function.name == 'isinstance':
type_arg = node.args[1]
if type_arg.type.is_builtin_type and type_arg.type.name == 'type':
......
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