S
Steven Bethard
Anyone know why deques don't support slicing?
[1, 1, 3, 7, 13]
Is there a performance problem with supporting slicing perhaps?
Steve
Traceback (most recent call last):from collections import deque
d = deque(i**2 - i + 1 for i in range(10))
d deque([1, 1, 3, 7, 13, 21, 31, 43, 57, 73])
d[:5]
File said:[d for i in range(5)]
[1, 1, 3, 7, 13]
Is there a performance problem with supporting slicing perhaps?
Steve