diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2009-11-15 06:20:55 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2009-11-15 06:20:55 (GMT) |
commit | 1107c5d7d1aece9bec34920cea0878a6485e185e (patch) | |
tree | 94afe9a94bd33e03cb8dc0cffd013c57c3bfb720 | |
parent | 153ce35a15f74a1fc5e4636e62a6de1ac2a77bfd (diff) | |
download | cpython-1107c5d7d1aece9bec34920cea0878a6485e185e.zip cpython-1107c5d7d1aece9bec34920cea0878a6485e185e.tar.gz cpython-1107c5d7d1aece9bec34920cea0878a6485e185e.tar.bz2 |
Merged revisions 76282 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76282 | senthil.kumaran | 2009-11-15 11:40:30 +0530 (Sun, 15 Nov 2009) | 3 lines
Addition of some details in the code comments.
........
-rw-r--r-- | Lib/urllib/request.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 67f62eb..da73363 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -30,7 +30,9 @@ handler, the argument will be installed instead of the default. install_opener -- Installs a new opener as the default opener. objects of interest: -OpenerDirector -- + +OpenerDirector -- Sets up the User-Agent as the Python-urllib and manages the +Handler classes while dealing with both requests and responses. Request -- An object that encapsulates the state of a request. The state can be as simple as the URL. It can also include extra HTTP @@ -398,7 +400,7 @@ def build_opener(*handlers): """Create an opener object from a list of handlers. The opener will use several default handlers, including support - for HTTP and FTP. + for HTTP, FTP and when applicable HTTPS. If any of the handlers passed as arguments are subclasses of the default handlers, the default handlers will not be used. |