
Sept. 25, 2009
4:34 p.m.
So there was a discussion back in April [0] 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 callable(obj)). Which direction is this more likely to be resolved? Should I write iterable(obj) or expect callable(obj) to be deprecated? - Andrey 0. http://mail.python.org/pipermail/python-ideas/2009-April/004382.html