[issue41223] `object`-backed `memoryview`'s `tolist` errors

2021-09-28 Thread Dennis Sweeney
Dennis Sweeney added the comment: Can you describe your use-case more? In particular, why use memoryview(a).tolist() instead of a.tolist()? Or some other numpy operations like a.flat or a.view()? Or even numpy.array(memoryview(a)) to recover a numpy array from a memoryview? If this were

[issue41223] `object`-backed `memoryview`'s `tolist` errors

2021-09-27 Thread jakirkham
Change by jakirkham : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41223] `object`-backed `memoryview`'s `tolist` errors

2020-07-06 Thread jakirkham
New submission from jakirkham : When working with an `object`-backed `memoryview`, it seems we are unable to coerce it to a `list`. This would be useful as it would provide a way to get the underlying `object`'s into something a bit easier to work with. ``` In [1]: import numpy