[Python-checkins] cpython (3.4): Issue7186: document that __doc__ is not inherited by subclasses

ethan.furman python-checkins at python.org
Sat Oct 18 07:26:07 CEST 2014


https://hg.python.org/cpython/rev/7c183c782401
changeset:   93126:7c183c782401
branch:      3.4
parent:      93123:4c2b77d0680b
user:        Ethan Furman <ethan at stoneleaf.us>
date:        Fri Oct 17 22:25:22 2014 -0700
summary:
  Issue7186: document that __doc__ is not inherited by subclasses

files:
  Doc/reference/datamodel.rst |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -454,7 +454,8 @@
       +=========================+===============================+===========+
       | :attr:`__doc__`         | The function's documentation  | Writable  |
       |                         | string, or ``None`` if        |           |
-      |                         | unavailable                   |           |
+      |                         | unavailable; not inherited by |           |
+      |                         | subclasses                    |           |
       +-------------------------+-------------------------------+-----------+
       | :attr:`__name__`        | The function's name           | Writable  |
       +-------------------------+-------------------------------+-----------+

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list