how to inherit docstrings?

Eric Snow ericsnowcurrently at gmail.com
Thu Jun 9 19:31:35 EDT 2011


On Thu, Jun 9, 2011 at 5:23 PM, Ben Finney <ben+python at benfinney.id.au> wrote:
> Gregory Ewing <greg.ewing at canterbury.ac.nz> writes:
>
>> IMO, it shouldn't be necessary to explicitly copy docstrings around
>> like this in the first place. Either it should happen automatically,
>> or help() should be smart enough to look up the inheritance hierarchy
>> when given a method that doesn't have a docstring of its own.
>
> Since the docstrings are useful in more places than just ‘help’, I'm +1
> on having docstrings be automatically inherited if not specified.
>
> Would the OP like to propose this on ‘python-ideas’?
>

Yeah, I'll do that.  Thanks.

-eric

> --
>  \        “Odious ideas are not entitled to hide from criticism behind |
>  `\          the human shield of their believers' feelings.” —Richard |
> _o__)                                                         Stallman |
> Ben Finney
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list