Message 128518 - Python tracker (original) (raw)

That said:

Having the memoryview "own" the exported buffer would be a simple solution to the above issue.

If you can implement that without exhibing the issues we discussed above (e.g. O(N) memory consumption when doing repetitive slicing), then why not.

Also, thanks for the patch. Please refrain from spurious formatting changes, though.