[Python-checkins] cpython: Issue #18978: Update docs to reflect explicitly the ability to set the
jason.coombs
python-checkins at python.org
Sun Sep 22 16:17:36 CEST 2013
http://hg.python.org/cpython/rev/7f13d5ecf71f
changeset: 85787:7f13d5ecf71f
user: Jason R. Coombs <jaraco at jaraco.com>
date: Sun Sep 22 09:33:45 2013 -0400
summary:
Issue #18978: Update docs to reflect explicitly the ability to set the attribute at the class level.
files:
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
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -220,10 +220,15 @@
*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()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list