From 1634fc73d1826fb8ccabbf2966bda64c5dedc129 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 9 Oct 2008 13:30:59 -0700 Subject: [PATCH] re-enable fast isinstance --- Cython/Compiler/Optimize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index c26bd913..7422b82e 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -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': -- 2.26.2