Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 38709:67450db26f81 legacy-trunk
Apply perky's fix for #1503157: "/".join([u"", u""]) raising OverflowError.
Also improve error message on overflow.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sat, 10 Jun 2006 06:40:50 +0000 |
| parents | 1cafbcd7f55c |
| children | 0a8a392e1fae |
line wrap: on
line diff
--- a/Objects/stringobject.c Fri Jun 09 22:45:54 2006 +0000 +++ b/Objects/stringobject.c Sat Jun 10 06:40:50 2006 +0000 @@ -1788,7 +1788,7 @@ sz += seplen; if (sz < old_sz || sz > PY_SSIZE_T_MAX) { PyErr_SetString(PyExc_OverflowError, - "join() is too long for a Python string"); + "join() result is too long for a Python string"); Py_DECREF(seq); return NULL; }
