From 28b624825eb92cb8c96fbf8da267d8d14a61a841 Mon Sep 17 00:00:00 2001 From: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com> Date: Tue, 14 Nov 2017 03:19:26 +0530 Subject: [PATCH] bpo-16055: Fixes incorrect error text for int('1', base=1000) (#4376) * bpo-16055: Fixes incorrect error text for int('1', base=1000) * bpo-16055: Address review comments --- Objects/longobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index 74371557cd9..c3dc59ee9e9 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -4808,7 +4808,7 @@ long_new_impl(PyTypeObject *type, PyObject *x, PyObject *obase) return NULL; if ((base != 0 && base < 2) || base > 36) { PyErr_SetString(PyExc_ValueError, - "int() base must be >= 2 and <= 36"); + "int() base must be >= 2 and <= 36, or 0"); return NULL; }