[issue17394] Add slicing support to collections.deque

Josh Rosenberg report at bugs.python.org
Wed Jan 27 17:56:59 EST 2016


Josh Rosenberg added the comment:

It seems odd to have a slice of a deque return a list. Are there any other examples of non-buffer protocol objects behaving like this in the standard library/built-ins? Only examples I can come up with are mmap objects and ctypes arrays (which are making raw binary data available in Python); it seems rather surprising that a Python level type like deque would slice to produce a list.

----------
nosy: +josh.r

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17394>
_______________________________________


More information about the Python-bugs-list mailing list