Make error message more specific for min() and max().

Suggested by MvL.
This commit is contained in:
Raymond Hettinger 2002-12-29 18:31:19 +00:00
parent c7b076928c
commit bbfb910416
1 changed files with 1 additions and 1 deletions

View File

@ -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);