Message 139100 - Python tracker (original) (raw)
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.