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 xuanji
Recipients catlee, eric.araujo, jhylton, orsenthil, rcoyner, rhettinger, xuanji
Date 2010-11-29.01:46:28
SpamBayes Score 1.2109901e-09
Marked as misclassified No
Message-id <1290995191.41.0.776257186004.issue3243@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Raymond, I assume you're referring to catlee's patch? 'str' has been changed to 'data' in python 3.2

While porting the patch I ran into this issue, which is that isinstance(str, collections.Iterable) doesn't behave exactly like hasattr(str,'next')


>>> hasattr("lol", '__next__')
False
>>> isinstance("lol", collections.Iterable)
True

so using the isinstance method would actually match against strings, which iirc would make the program fail. I can confirm later if needed.
History
Date User Action Args
2010-11-29 01:46:31xuanjisetrecipients: + xuanji, jhylton, rhettinger, orsenthil, catlee, eric.araujo, rcoyner
2010-11-29 01:46:31xuanjisetmessageid: <1290995191.41.0.776257186004.issue3243@psf.upfronthosting.co.za>
2010-11-29 01:46:28xuanjilinkissue3243 messages
2010-11-29 01:46:28xuanjicreate