#!/usr/local/bin/python2 from collections import deque for i in xrange(100000): l = deque(range(10)) for j in xrange(10): l.popleft()