]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18978: Update docs to reflect explicitly the ability to set the attribute...
authorJason R. Coombs <jaraco@jaraco.com>
Sun, 22 Sep 2013 13:33:45 +0000 (09:33 -0400)
committerJason R. Coombs <jaraco@jaraco.com>
Sun, 22 Sep 2013 13:33:45 +0000 (09:33 -0400)
Doc/library/urllib.request.rst

index 91673f459cb4b13b3dbfbb46941df69c2efd78e5..ef902b1137b46640d1e29eb667a7d6607e77d5e3 100644 (file)
@@ -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()