From: Antoine Pitrou Date: Wed, 16 May 2012 12:39:36 +0000 (+0200) Subject: Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under... X-Git-Tag: v3.3.0a4~153^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7d033db783b8ca2e4dfe23e348129ed666b6e2b;p=python Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows. (untested, because of Windows build issues under 3.x) --- b7d033db783b8ca2e4dfe23e348129ed666b6e2b diff --cc Misc/NEWS index a80238a330,08d21f78b6..b289b54ed0 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -34,12 -63,9 +34,15 @@@ Core and Builtin Library ------- + - Issue #14829: Fix bisect and range() indexing with large indices + (>= 2 ** 32) under 64-bit Windows. + +- Issue #14732: The _csv module now uses PEP 3121 module initialization. + Patch by Robin Schreiber. + +- Issue #14809: Add HTTP status codes introduced by RFC 6585 to http.server + and http.client. Patch by EungJun Yi. + - Issue #14777: tkinter may return undecoded UTF-8 bytes as a string when accessing the Tk clipboard. Modify clipboad_get() to first request type UTF8_STRING when no specific type is requested in an X11 windowing diff --cc Modules/_bisectmodule.c index 4d0a2e4c1c,eae29784dc..faca8cfbca --- a/Modules/_bisectmodule.c +++ b/Modules/_bisectmodule.c @@@ -194,9 -193,7 +195,8 @@@ insort_left(PyObject *self, PyObject *a if (PyList_Insert(list, index, item) < 0) return NULL; } else { - result = PyObject_CallMethod(list, "insert", "nO", index, item); + _Py_IDENTIFIER(insert); - - result = _PyObject_CallMethodId(list, &PyId_insert, "iO", index, item); ++ result = _PyObject_CallMethodId(list, &PyId_insert, "nO", index, item); if (result == NULL) return NULL; Py_DECREF(result);