From: Robert Bradshaw Date: Thu, 9 Oct 2008 20:30:59 +0000 (-0700) Subject: re-enable fast isinstance X-Git-Tag: 0.9.9.2.beta~48 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1634fc73d1826fb8ccabbf2966bda64c5dedc129;p=cython.git re-enable fast isinstance --- 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':