diff options
author | Raymond Hettinger <python@rcn.com> | 2002-12-29 18:31:19 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-12-29 18:31:19 +0000 |
commit | bbfb91041634d11c73046775f62a1c44bc729bc3 (patch) | |
tree | d86e4ce3a96a8cc9b57e583fcc32f43263ca665b /Python | |
parent | c7b076928c8d3316f6426a49c9d33ce14c0eaaee (diff) | |
download | cpython-git-bbfb91041634d11c73046775f62a1c44bc729bc3.tar.gz |
Make error message more specific for min() and max().
Suggested by MvL.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |