[issue4608] urllib.request.urlopen does not return an iterable object
Senthil
report at bugs.python.org
Fri Jan 2 22:30:43 CET 2009
Senthil <orsenthil at gmail.com> added the comment:
Jakub,
I have attached a revision to the patch.
You are right, when __iter__ returns self.fp (as in previous patch), the
__next__ is superflous.
But, I was thinking of __iter__ returning an instance of addbase,
instead of self.fp and in that case __next__ was required. But I see
that i had not changed self.fp to self.
This is implemented in the similar lines of IOBase class, io.py
w.r.t to your other comment, why do you think __next__ implementation is
incorrect?
Thanks,
Senthil
Added file: http://bugs.python.org/file12548/issue4608_py31-v2.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4608>
_______________________________________
More information about the Python-bugs-list
mailing list