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.araujo
Recipients catlee, davide.rizzo, eric.araujo, georg.brandl, jhylton, orsenthil, pitrou, rcoyner, rhettinger, xuanji
Date 2010-11-30.17:23:50
SpamBayes Score 0.051048454
Marked as misclassified No
Message-id <1291137833.88.0.26231625532.issue3243@psf.upfronthosting.co.za>
In-reply-to
Content
> hasattr("lol", '__next__') == False, even though strings are Iterable

FYI, magic methods are looked up on the class, not on the instance.  That’s why ABCs are the right thing to use here.  http://docs.python.org/dev/reference/datamodel#special-method-names
History
Date User Action Args
2010-11-30 17:23:53eric.araujosetrecipients: + eric.araujo, jhylton, georg.brandl, rhettinger, orsenthil, pitrou, catlee, rcoyner, xuanji, davide.rizzo
2010-11-30 17:23:53eric.araujosetmessageid: <1291137833.88.0.26231625532.issue3243@psf.upfronthosting.co.za>
2010-11-30 17:23:50eric.araujolinkissue3243 messages
2010-11-30 17:23:50eric.araujocreate