New submission from Randy Henderson:
Even when a deque is populated in the Timer setup parameter, the interpreter
gives "IndexError: pop from an empty deque". IndexError is generated for lists
as well.
>>> Timer(stmt='d.popleft()',setup='d=deque([
Randy Henderson added the comment:
You're right. I was expecting the code in stmt to be run only once, but I
just discovered in the documentation that the default is for it to be run
one million times. I provided the argument 'number=1' to the timeit()
method and am now getting
Changes by Randy Henderson :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or