Index: org/python/core/PyReflectedFunction.java =================================================================== --- org/python/core/PyReflectedFunction.java (revision 5774) +++ org/python/core/PyReflectedFunction.java (working copy) @@ -123,16 +123,42 @@ public PyObject __call__(PyObject self, PyObject[] args, String[] keywords) { ReflectedCallData callData = new ReflectedCallData(); Object method = null; + int iBestMatch = -1; ReflectedArgs[] argsl = argslist; int n = nargs; - for (int i = 0; i < n; i++) { + for (int i=0; i 0) { + ReflectedArgs rargs = argsl[iBestMatch]; + rargs.matches(self, args, keywords, callData); + method = rargs.data; + } if (method == null) { throwError(callData.errArg, args.length, self != null, keywords.length != 0); }