summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-21 19:20:21 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-21 19:20:21 (GMT)
commit3fbe20c01ea63aac0b06afdcb22422e8cb9a358e (patch)
tree3f30b701e720159c4966196564b0b9926177cc5a /Doc/library/inspect.rst
parent06291185e1d9d1dc96388108690c62d0d52364aa (diff)
downloadcpython-3fbe20c01ea63aac0b06afdcb22422e8cb9a358e.zip
cpython-3fbe20c01ea63aac0b06afdcb22422e8cb9a358e.tar.gz
cpython-3fbe20c01ea63aac0b06afdcb22422e8cb9a358e.tar.bz2
Add docs for __func__ and __self__ on methods.
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 92c3ef9..4ee68f6 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -54,12 +54,12 @@ attributes:
| | im_class | class object that asked | \(1) |
| | | for this method | |
+-----------+-----------------+---------------------------+-------+
-| | im_func | function object | |
-| | | containing implementation | |
+| | im_func or | function object | |
+| | __func__ | containing implementation | |
| | | of method | |
+-----------+-----------------+---------------------------+-------+
-| | im_self | instance to which this | |
-| | | method is bound, or | |
+| | im_self or | instance to which this | |
+| | __self__ | method is bound, or | |
| | | ``None`` | |
+-----------+-----------------+---------------------------+-------+
| function | __doc__ | documentation string | |