how to inherit docstrings?

Terry Reedy tjreedy at udel.edu
Thu Jun 9 23:59:08 EDT 2011


On 6/9/2011 9:12 PM, Carl Banks wrote:

> Presumably, the reason you are overriding a method in a subclass is to change its behavior; I'd expect an inherited docstring to be inaccurate more often than not.  So I'd be -1 on automatically inheriting them.
>
> However, I'd be +1 easily on a little help from the language to explicitly request to inherit the docstring.

An empty docstring "" could be interpreted as 'ditto' ;-)
It would be useless otherwise.

-- 
Terry Jan Reedy




More information about the Python-list mailing list