re-enable fast isinstance
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 9 Oct 2008 20:30:59 +0000 (13:30 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 9 Oct 2008 20:30:59 +0000 (13:30 -0700)
Cython/Compiler/Optimize.py

index c26bd913ad457317f3de86f20d2e4fd84ad077fc..7422b82ed562894bb2db88c8aec80d862c609bd3 100644 (file)
@@ -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':