From c4808363460d3f628b03ff569c0b9d80b84b17de Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 9 Jul 2009 01:16:48 -0700 Subject: [PATCH] more function overloading --- Cython/Compiler/ExprNodes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index acb907c1..119c3d0e 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2418,8 +2418,9 @@ class SimpleCallNode(CallNode): else: score[0] += 1 else: - continue - possibilities.append((score, entry)) # so we can sort it + break + else: + possibilities.append((score, entry)) # so we can sort it if len(possibilities): possibilities.sort() if len(possibilities) > 1 and possibilities[0][0] == possibilities[1][0]: -- 2.26.2