[Python-ideas] inheriting docstrings and mutable docstings for classes

Arnaud Delobelle arnodel at gmail.com
Fri Jun 10 09:28:13 CEST 2011

On 10 June 2011 08:04, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Maybe the best thing would be for the inherited docstring
> to get put into a different property, such as __basedoc__.
> Then tools that examine docstrings can decide for themselves
> whether using inherited docstrings makes sense.

Given that Python supports multiple inheritance, which parent class's
__doc__ would the __basedoc__ contain?  Also, what would the
__basedoc__ contain if the parent's __doc__ is empty but not its


More information about the Python-ideas mailing list