Commit bbfb9104 authored by Raymond Hettinger's avatar Raymond Hettinger

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

Suggested by MvL.
parent c7b07692
...@@ -1051,7 +1051,7 @@ min_max(PyObject *args, int op) ...@@ -1051,7 +1051,7 @@ min_max(PyObject *args, int op)
if (PyTuple_Size(args) > 1) if (PyTuple_Size(args) > 1)
v = args; 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; return NULL;
it = PyObject_GetIter(v); it = PyObject_GetIter(v);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment