summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorDaisuke Miyakawa <d.miyakawa@gmail.com>2017-10-12 14:39:43 (GMT)
committerÉric Araujo <merwok@users.noreply.github.com>2017-10-12 14:39:43 (GMT)
commit0e61e67a57deb4abc677808201d7cf3c38138e02 (patch)
tree904a042593531964bf0ef25590a34734f86ab508 /Doc/library/functions.rst
parent277c84067ff5dfa271725ee9da1a9d75a7c0bcd8 (diff)
downloadcpython-0e61e67a57deb4abc677808201d7cf3c38138e02.zip
cpython-0e61e67a57deb4abc677808201d7cf3c38138e02.tar.gz
cpython-0e61e67a57deb4abc677808201d7cf3c38138e02.tar.bz2
bpo-31567: add or fix decorator markup in docs (#3959)
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 08093e6..eed6730 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -196,9 +196,9 @@ are always available. They are listed here in alphabetical order.
base 16). :exc:`ValueError` will be raised if *i* is outside that range.
-.. function:: classmethod(function)
+.. decorator:: classmethod
- Return a class method for *function*.
+ Transform a method into a class method.
A class method receives the class as implicit first argument, just like an
instance method receives the instance. To declare a class method, use this
@@ -1398,9 +1398,9 @@ are always available. They are listed here in alphabetical order.
For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`.
-.. function:: staticmethod(function)
+.. decorator:: staticmethod
- Return a static method for *function*.
+ Transform a method into a static method.
A static method does not receive an implicit first argument. To declare a static
method, use this idiom::