10 Jun
2011
10 Jun
'11
10:28 a.m.
On 10 June 2011 08:04, Greg Ewing
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 __basedoc__? -- Arnaud