title: In Python, how do I determine if an object is iterable?
body: <p>Is there a method like <code>isiterable</code>? The only solution I have found so far is to call</p>
  
  <pre><code>hasattr(myObj, '__iter__')
  </code></pre>
  
  <p>But I am not sure how fool-proof this is.</p>