Unverified Kaydet (Commit) e0d67f17 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka Kaydeden (comit) GitHub

bpo-34201: Make ndarray.readonly a bool and use stricter tests in test_buffer. (GH-8414)

üst 7cb7bcff
This diff is collapsed.
...@@ -2038,7 +2038,7 @@ static PyObject * ...@@ -2038,7 +2038,7 @@ static PyObject *
ndarray_get_readonly(NDArrayObject *self, void *closure) ndarray_get_readonly(NDArrayObject *self, void *closure)
{ {
Py_buffer *base = &self->head->base; Py_buffer *base = &self->head->base;
return PyLong_FromLong(base->readonly); return PyBool_FromLong(base->readonly);
} }
static PyObject * static PyObject *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment