Kaydet (Commit) 0c47f343 authored tarafından Jason R. Coombs's avatar Jason R. Coombs

Issue #18978: Update docs to reflect explicitly the ability to set the attribute…

Issue #18978: Update docs to reflect explicitly the ability to set the attribute at the class level.
üst 838521ee
...@@ -220,10 +220,15 @@ The following classes are provided: ...@@ -220,10 +220,15 @@ The following classes are provided:
*method* should be a string that indicates the HTTP request method that *method* should be a string that indicates the HTTP request method that
will be used (e.g. ``'HEAD'``). Its value is stored in the will be used (e.g. ``'HEAD'``). Its value is stored in the
:attr:`~Request.method` attribute and is used by :meth:`get_method()`. :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 .. versionchanged:: 3.3
:attr:`Request.method` argument is added to the Request class. :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() .. class:: OpenerDirector()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment