title: Check maxlen of deque in python 2.6
body: <p><br>
  I have had to change from python 2.7 to 2.6.<br>
  I've been using a deque with the maxlen property and have been checking what the maxlen is. Apparently you can use maxlen in python 2.6, but in 2.6 deques do not have a maxlen attribute.<br>
  What is the cleanest way to check what the maxlen of a deque is in python 2.6?</p>
  
  <p>In 2.7:</p>
  
  <pre><code>from collections import deque
  d = deque(maxlen = 10)
  print d.maxlen
  </code></pre>
  
  <p>In 2.6 the deque can be used and the maxlen works properly, but maxlen is not an attribute that can be referred to.</p>
  
  <p>Cheers</p>