Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Bug is evident
NumPyBuffer::NumPyBuffer(PyObject* ao) : Buffer(nullptr, 0) { PyAcquireGIL lock; arr_ = ao; Py_INCREF(ao); if (PyArray_Check(ao)) { PyArrayObject* ndarray = reinterpret_cast<PyArrayObject*>(ao); data_ = reinterpret_cast<const uint8_t*>(PyArray_DATA(ndarray)); size_ = PyArray_SIZE(ndarray) * PyArray_DESCR(ndarray)->elsize; capacity_ = size_; if (PyArray_FLAGS(ndarray) & NPY_ARRAY_WRITEABLE) { is_mutable_ = true; } } }
Attachments
Issue Links
- relates to
-
ARROW-12530 [C++] Remove Buffer::mutable_data_ member and use const_cast on data_ only if is_mutable_ is true
- Resolved
- supercedes
-
ARROW-11172 [Python] NumPyBuffer does not set mutable_data_
- Closed
- links to