From bbfb91041634d11c73046775f62a1c44bc729bc3 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 29 Dec 2002 18:31:19 +0000 Subject: [PATCH] Make error message more specific for min() and max(). Suggested by MvL. --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 5cf1d413ae..ad0625016f 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1051,7 +1051,7 @@ min_max(PyObject *args, int op) if (PyTuple_Size(args) > 1) v = args; - else if (!PyArg_UnpackTuple(args, "min/max", 1, 1, &v)) + else if (!PyArg_UnpackTuple(args, (op==Py_LT) ? "min" : "max", 1, 1, &v)) return NULL; it = PyObject_GetIter(v); -- 2.40.0