Issue #14181: Allow memoryview construction from an object that uses the

getbuffer redirection scheme.
This commit is contained in:
Stefan Krah 2012-03-05 09:30:47 +01:00
parent ab8f392ff0
commit 4e99a315b7
3 changed files with 105 additions and 13 deletions

View file

@ -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;
}