From: Robert Bradshaw Date: Thu, 9 Jul 2009 08:16:48 +0000 (-0700) Subject: more function overloading X-Git-Tag: 0.13.beta0~353^2~61 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c4808363460d3f628b03ff569c0b9d80b84b17de;p=cython.git more function overloading --- 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]: