diff options
author | Raymond Hettinger <python@rcn.com> | 2002-12-29 18:31:19 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-12-29 18:31:19 (GMT) |
commit | bbfb91041634d11c73046775f62a1c44bc729bc3 (patch) | |
tree | d86e4ce3a96a8cc9b57e583fcc32f43263ca665b /Python/bltinmodule.c | |
parent | c7b076928c8d3316f6426a49c9d33ce14c0eaaee (diff) | |
download | cpython-bbfb91041634d11c73046775f62a1c44bc729bc3.zip cpython-bbfb91041634d11c73046775f62a1c44bc729bc3.tar.gz cpython-bbfb91041634d11c73046775f62a1c44bc729bc3.tar.bz2 |
Make error message more specific for min() and max().
Suggested by MvL.
Diffstat (limited to 'Python/bltinmodule.c')
-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 5cf1d41..ad06250 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); |