From: Raymond Hettinger <python@rcn.com>
Date: Sun, 29 Dec 2002 18:31:19 +0000 (+0000)
Subject: Make error message more specific for min() and max().
X-Git-Tag: v2.3c1~2851
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbfb91041634d11c73046775f62a1c44bc729bc3;p=python

Make error message more specific for min() and max().
Suggested by MvL.
---

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);