mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
SF 698520: Iterator for urllib.URLOpener
Contributed by Brett Cannon.
This commit is contained in:
parent
e9e20a9838
commit
42182ebaf6
3 changed files with 9 additions and 1 deletions
|
|
@ -27,7 +27,8 @@ if the server returns an error code, the \exception{IOError} exception
|
|||
is raised. If all went well, a file-like object is returned. This
|
||||
supports the following methods: \method{read()}, \method{readline()},
|
||||
\method{readlines()}, \method{fileno()}, \method{close()},
|
||||
\method{info()} and \method{geturl()}.
|
||||
\method{info()} and \method{geturl()}. It also has proper support for
|
||||
the iterator protocol.
|
||||
|
||||
Except for the \method{info()} and \method{geturl()} methods,
|
||||
these methods have the same interface as for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue