[issue41223] `object`-backed `memoryview`'s `tolist` errors
Dennis Sweeney
report at bugs.python.org
Tue Sep 28 15:42:33 EDT 2021
Dennis Sweeney <sweeney.dennis650 at gmail.com> 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 implemented and stdlib memoryview objects supported some kind of object 'O' format, would list(memoryview(b"\0\0\0\0\0\0\0\0").cast('O')) dereference a null pointer and segfault?
----------
components: +Interpreter Core
nosy: +Dennis Sweeney
type: -> enhancement
versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41223>
_______________________________________
More information about the Python-bugs-list
mailing list