Message373175
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
In [2]: a = numpy.array(["abc", "def", "ghi"], dtype=object)
In [3]: m = memoryview(a)
In [4]: m.tolist()
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
<ipython-input-4-42400a31add8> in <module>
----> 1 m.tolist()
NotImplementedError: memoryview: format O not supported
``` |
|
Date |
User |
Action |
Args |
2020-07-06 21:19:56 | jakirkham | set | recipients:
+ jakirkham |
2020-07-06 21:19:56 | jakirkham | set | messageid: <1594070396.59.0.711560769808.issue41223@roundup.psfhosted.org> |
2020-07-06 21:19:56 | jakirkham | link | issue41223 messages |
2020-07-06 21:19:56 | jakirkham | create | |
|