Skip to content

Commit 28b6248

Browse files
CuriousLearnervstinner
authored andcommitted
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
1 parent 9b6c60c commit 28b6248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/longobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4808,7 +4808,7 @@ long_new_impl(PyTypeObject *type, PyObject *x, PyObject *obase)
48084808
return NULL;
48094809
if ((base != 0 && base < 2) || base > 36) {
48104810
PyErr_SetString(PyExc_ValueError,
4811-
"int() base must be >= 2 and <= 36");
4811+
"int() base must be >= 2 and <= 36, or 0");
48124812
return NULL;
48134813
}
48144814

0 commit comments

Comments
 (0)