diff options
author | Georg Brandl <georg@python.org> | 2008-03-21 19:20:21 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-21 19:20:21 (GMT) |
commit | 3fbe20c01ea63aac0b06afdcb22422e8cb9a358e (patch) | |
tree | 3f30b701e720159c4966196564b0b9926177cc5a /Doc/reference | |
parent | 06291185e1d9d1dc96388108690c62d0d52364aa (diff) | |
download | cpython-3fbe20c01ea63aac0b06afdcb22422e8cb9a358e.zip cpython-3fbe20c01ea63aac0b06afdcb22422e8cb9a358e.tar.gz cpython-3fbe20c01ea63aac0b06afdcb22422e8cb9a358e.tar.bz2 |
Add docs for __func__ and __self__ on methods.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 8ae94af..cc71420 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -555,6 +555,10 @@ Callable types .. versionchanged:: 2.2 :attr:`im_self` used to refer to the class that defined the method. + .. versionchanged:: 2.6 + For 3.0 forward-compatibility, :attr:`im_func` is also available as + :attr:`__func__`, and :attr:`im_self` as :attr:`__self__`. + .. index:: single: __doc__ (method attribute) single: __name__ (method attribute) |