title: How to peek front of deque without popping?
body: <p>I want to check a condition against the front of a queue before deciding whether or not to pop. How can I achieve this in python with collections.deque?</p>
  
  <pre><code>list(my_deque)[0]
  </code></pre>
  
  <p>seems ugly and poor for performance. </p>