Is there a method like isiterable? The only solution I have found so far is to call
isiterable
hasattr(myObj, \'__iter__\')
But I am not
This isn't sufficient: the object returned by __iter__ must implement the iteration protocol (i.e. next method). See the relevant section in the documentation.
__iter__
next
In Python, a good practice is to "try and see" instead of "checking".