Martin Panter added the comment:

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().

----------
nosy: +martin.panter

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26077>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to