Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 48935:b5365f34640f legacy-trunk
Issue #3751: str.rpartition would perform a left-partition when called with
a unicode argument.
will backport.
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Mon, 01 Sep 2008 19:52:00 +0000 |
| parents | b8c4bf393794 |
| children | 2e794757bdc8 |
line wrap: on
line diff
--- a/Objects/stringobject.c Mon Sep 01 17:44:14 2008 +0000 +++ b/Objects/stringobject.c Mon Sep 01 19:52:00 2008 +0000 @@ -1638,7 +1638,7 @@ } #ifdef Py_USING_UNICODE else if (PyUnicode_Check(sep_obj)) - return PyUnicode_Partition((PyObject *) self, sep_obj); + return PyUnicode_RPartition((PyObject *) self, sep_obj); #endif else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len)) return NULL;
