From 62091827b63b9067d6892e3825157933c22c928c Mon Sep 17 00:00:00 2001 From: Soham Ratnaparkhi Date: Fri, 6 May 2022 15:46:25 +0530 Subject: [PATCH 1/2] Update bltinmodule.c --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 84ebb680e0b8fb..5656e0157c36a5 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1772,7 +1772,7 @@ min_max(PyObject *args, PyObject *kwds, int op) maxitem = defaultval; } else { PyErr_Format(PyExc_ValueError, - "%s() arg is an empty sequence", name); + "%s() should have at least 1 iterable element as an argument but, there is no argument hence it is an empty sequence", name); } } else From 3d087ecdd9696fcb129f80de68f02bd47d8ba437 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Fri, 6 May 2022 10:22:54 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022-05-06-10-22-53.gh-issue-90829.miAgA_.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2022-05-06-10-22-53.gh-issue-90829.miAgA_.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-05-06-10-22-53.gh-issue-90829.miAgA_.rst b/Misc/NEWS.d/next/Core and Builtins/2022-05-06-10-22-53.gh-issue-90829.miAgA_.rst new file mode 100644 index 00000000000000..e0782d27d6071d --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-05-06-10-22-53.gh-issue-90829.miAgA_.rst @@ -0,0 +1,2 @@ +Changing the error message - "ValueError: min() arg is an empty sequence" to "ValueError: should have at least 1 element as an argument but, there is no argument and it is an empty sequence". +- This can make the error message more comprehendible.