Dennis Sweeney <sweeney.dennis...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue41223>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to