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 sschwarzer
Recipients Arfrever, ajaksu2, bbrazil, facundobatista, flox, jhylton, jwilk, marduk, orsenthil, pl, santoso.wijaya, sschwarzer, zanella
Date 2011-06-25.16:37:51
SpamBayes Score 5.0682716e-05
Marked as misclassified No
Message-id <1309019872.55.0.743837456138.issue4608@psf.upfronthosting.co.za>
In-reply-to
Content
It turned out that although the addinfourl instance had the `__iter__` attribute in `addbase.__init__` correctly assigned, `__iter__` wasn't found by the `iter` builtin. It seems that `iter` always tries to use the `__iter__` method of the _class_ and doesn't look at the instance.

Riccardo Attilio Galli and I made the attached patch. The patch also fixes a corresponding `TypeError` for "file://" URLs, not just "ftp://" URLs.
History
Date User Action Args
2011-06-25 16:37:52sschwarzersetrecipients: + sschwarzer, jhylton, facundobatista, orsenthil, ajaksu2, jwilk, zanella, pl, Arfrever, marduk, flox, santoso.wijaya, bbrazil
2011-06-25 16:37:52sschwarzersetmessageid: <1309019872.55.0.743837456138.issue4608@psf.upfronthosting.co.za>
2011-06-25 16:37:52sschwarzerlinkissue4608 messages
2011-06-25 16:37:51sschwarzercreate