[Python-ideas] Why is there a callable predicate, but no iterable?
anfedorov at gmail.com
Fri Sep 25 16:34:34 CEST 2009
So there was a discussion back in April  about the lack of an "iterable"
predicate, which Pascal pointing out that the intention may be to use
"isinstance(obj, Iterable)" instead. That seems inconsistent with the
existence of collections.Callable (so, isinstance(obj, Callable) instead of
Which direction is this more likely to be resolved? Should I write
iterable(obj) or expect callable(obj) to be deprecated?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas