This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.snow
Recipients Claudiu.Popa, belopolsky, christian.heimes, eric.snow, ethan.furman, ionelmc, jedwards, llllllllll, r.david.murray, rhettinger, steven.daprano, terry.reedy
Date 2015-04-20.01:43:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
> Ionel Cristian Mărieș added the comment:
> It's not. Did you see the example with iter()/__iter__? It does convert
> the AttributeError into a TypeError.

callable and iter are not the same thing though.  callable checks for
a capability.  iter invokes a capability.  The direct comparision
would be (e.g.
isinstance(obj, Iterable)), which behaves exactly like callable does
(does not invoke the descriptor protocol).  See
Date User Action Args
2015-04-20 01:43:08eric.snowsetrecipients: + eric.snow, rhettinger, terry.reedy, belopolsky, christian.heimes, ionelmc, steven.daprano, r.david.murray, Claudiu.Popa, ethan.furman, llllllllll, jedwards
2015-04-20 01:43:08eric.snowlinkissue23990 messages
2015-04-20 01:43:08eric.snowcreate