diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-09-22 13:33:45 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-09-22 13:33:45 (GMT) |
commit | 0c47f34385e4b8f2136b372abd1d1994f6521473 (patch) | |
tree | 059be78b08a398d568dd52d6d3c287bed7f28d8d /Doc/library/urllib.request.rst | |
parent | 838521eed0d90a12b3f387457702f268734ced89 (diff) | |
download | cpython-0c47f34385e4b8f2136b372abd1d1994f6521473.zip cpython-0c47f34385e4b8f2136b372abd1d1994f6521473.tar.gz cpython-0c47f34385e4b8f2136b372abd1d1994f6521473.tar.bz2 |
Issue #18978: Update docs to reflect explicitly the ability to set the attribute at the class level.
Diffstat (limited to 'Doc/library/urllib.request.rst')
-rw-r--r-- | Doc/library/urllib.request.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 91673f4..ef902b1 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -220,10 +220,15 @@ The following classes are provided: *method* should be a string that indicates the HTTP request method that will be used (e.g. ``'HEAD'``). Its value is stored in the :attr:`~Request.method` attribute and is used by :meth:`get_method()`. + Subclasses may indicate a default method by setting the + :attr:`~Request.method` attribute in the class itself. .. versionchanged:: 3.3 :attr:`Request.method` argument is added to the Request class. + .. versionchanged:: 3.4 + Default :attr:`Request.method` may be indicated at the class level. + .. class:: OpenerDirector() |