[Python-ideas] inheriting docstrings and mutable docstings for classes (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Fri Jun 10 03:05:08 CEST 2011


On Fri, Jun 10, 2011 at 9:54 AM, Eric Snow <ericsnowcurrently at gmail.com> wrote:

I'm +1 on having doc be inherited.

-1. Subclasses are not the same thing as the original class so docstring inheritance should be requested explicitly.

Agreed that docstrings should be writeable after the fact, though (e.g. functions already work that way - functools.wraps wouldn't work otherwise).

Cheers, Nick.

-- Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list