Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 26824:fb36d9b50df5 legacy-trunk
Make error message more specific for min() and max().
Suggested by MvL.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Sun, 29 Dec 2002 18:31:19 +0000 |
| parents | e094a03a80ff |
| children | 753306f9b0a0 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Sun Dec 29 17:59:24 2002 +0000 +++ b/Python/bltinmodule.c Sun Dec 29 18:31:19 2002 +0000 @@ -1051,7 +1051,7 @@ 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);
