cpython: a9305102c892 (original) (raw)

--- a/Misc/ACKS +++ b/Misc/ACKS @@ -518,6 +518,7 @@ Mark Hammond Harald Hanche-Olsen Manus Hand Milton L. Hankins +Richard Hansen Stephen Hansen Barry Hantman Lynda Hardman

--- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -376,6 +376,53 @@ test_broken_memoryview(PyObject* self) Py_RETURN_NONE; } +static PyObject +test_to_contiguous(PyObject self, PyObject *noargs) +{

+

+

+

+

+} /* Tests of PyLong_{As, From}{Unsigned,}Long(), and (#ifdef HAVE_LONG_LONG) PyLong_{As, From}{Unsigned,}LongLong(). @@ -1785,6 +1832,7 @@ static PyMethodDef TestMethods[] = { {"test_dict_iteration", (PyCFunction)test_dict_iteration,METH_NOARGS}, {"test_lazy_hash_inheritance", (PyCFunction)test_lazy_hash_inheritance,METH_NOARGS}, {"test_broken_memoryview", (PyCFunction)test_broken_memoryview,METH_NOARGS},

--- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -499,7 +499,7 @@ PyBuffer_ToContiguous(void buf, Py_buff / Otherwise a more elaborate scheme is needed */

@@ -521,10 +521,10 @@ PyBuffer_ToContiguous(void *buf, Py_buff */ elements = len / view->itemsize; while (elements--) {