]> granicus.if.org Git - python/commitdiff
Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under...
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 16 May 2012 12:39:36 +0000 (14:39 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 16 May 2012 12:39:36 +0000 (14:39 +0200)
(untested, because of Windows build issues under 3.x)

1  2 
Misc/NEWS
Modules/_bisectmodule.c
Objects/rangeobject.c

diff --cc Misc/NEWS
index a80238a33078cc15147d2e10f8651a1c2ebd8ea9,08d21f78b695a51c347a705d1819e0e6f0f252aa..b289b54ed0868f13a497f2ab2f13f8d5e3245021
+++ 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
index 4d0a2e4c1c6a1d51ae37f5af967c8bdd7750b2a6,eae29784dc61d663a56bdda11b2704dcb8a4f252..faca8cfbcafa9482dd922449bcd37f3e0a58ee5c
@@@ -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);
Simple merge