commit | bbfb91041634d11c73046775f62a1c44bc729bc3 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sun Dec 29 18:31:19 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sun Dec 29 18:31:19 2002 +0000 |
tree | d86e4ce3a96a8cc9b57e583fcc32f43263ca665b | |
parent | c7b076928c8d3316f6426a49c9d33ce14c0eaaee [diff] |
Make error message more specific for min() and max(). Suggested by MvL.
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 5cf1d41..ad06250 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -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);