mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #14181: Allow memoryview construction from an object that uses the
getbuffer redirection scheme.
This commit is contained in:
parent
ab8f392ff0
commit
4e99a315b7
3 changed files with 105 additions and 13 deletions
|
@ -91,9 +91,6 @@ _PyManagedBuffer_FromObject(PyObject *base)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* Assume that master.obj is a new reference to base. */
|
||||
assert(mbuf->master.obj == base);
|
||||
|
||||
return (PyObject *)mbuf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue