how to inherit docstrings?

Ben Finney ben+python at benfinney.id.au
Thu Jun 9 21:42:44 EDT 2011


Carl Banks <pavlovevidence at gmail.com> writes:

> 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.

In which case the onus is on the programmer implementing different
behaviour to also override the docstring.

-- 
 \         “When we pray to God we must be seeking nothing — nothing.” |
  `\                                          —Saint Francis of Assisi |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list