[issue34302] Avoid inefficient way to find start point in deque.index

2018-08-01 Thread ksg97031
Change by ksg97031 : -- keywords: +patch pull_requests: +8117 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34302> ___ ___ Python-

[issue34302] Avoid inefficient way to find start point in deque.index

2018-07-31 Thread ksg97031
New submission from ksg97031 : Source base : heads/master:b75d7e2435, Aug 1 2018, 10:32:28 $ cat test.py import timeit queue_setup = ''' from collections import deque q = deque() start = 10**5 stop = start + 500 for i in range(0, stop): q.append(i) ''' co