Whoops, forgot to test after previous patch.
authorCraig Citro <craigcitro@gmail.com>
Tue, 9 Feb 2010 18:19:08 +0000 (10:19 -0800)
committerCraig Citro <craigcitro@gmail.com>
Tue, 9 Feb 2010 18:19:08 +0000 (10:19 -0800)
Cython/Compiler/PyrexTypes.py

index 1be454f7ee45f4592d8b3b1aae35b8d7212b8295..d2e1666304aa11b5004e3a3dad2728afd3868eba 100755 (executable)
@@ -2282,7 +2282,7 @@ def best_match(args, functions, pos=None):
         
     # Optimize the most common case of no overloading...
     if len(candidates) == 1:
-        return candidates[0]
+        return candidates[0][0]
     elif len(candidates) == 0:
         if len(errors) == 1 and pos is not None:
             error(pos, errors[0][1])