Message257942
I think which technique (copy or view) is better depends on the situation. If you are making a large temporary slice, a view may be more efficient. But if you are making a long-term slice and don’t need the original any more, a copy would allow the original memory to be freed early.
Do you have any use cases? You can already get a kind of slice view into bytes etc by using memoryview(). |
|
Date |
User |
Action |
Args |
2016-01-10 22:04:57 | martin.panter | set | recipients:
+ martin.panter, abarry, Filip Haglund |
2016-01-10 22:04:57 | martin.panter | set | messageid: <1452463497.42.0.480730644255.issue26077@psf.upfronthosting.co.za> |
2016-01-10 22:04:57 | martin.panter | link | issue26077 messages |
2016-01-10 22:04:57 | martin.panter | create | |
|