Re: how to inherit docstrings?
- From: Ben Finney <ben+python@xxxxxxxxxxxxxxx>
- Date: Fri, 10 Jun 2011 09:23:49 +1000
Gregory Ewing <greg.ewing@xxxxxxxxxxxxxxxx> 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’?
--
\ “Odious ideas are not entitled to hide from criticism behind |
`\ the human shield of their believers' feelings.” —Richard |
_o__) Stallman |
Ben Finney
.
- Follow-Ups:
- Re: how to inherit docstrings?
- From: Eric Snow
- Re: how to inherit docstrings?
- References:
- Re: how to inherit docstrings?
- From: Ethan Furman
- Re: how to inherit docstrings?
- From: Gregory Ewing
- Re: how to inherit docstrings?
- Prev by Date: Re: the stupid encoding problem to stdout
- Next by Date: __doc__ immutable for classes (was: Re: how to inherit docstrings?)
- Previous by thread: Re: how to inherit docstrings?
- Next by thread: Re: how to inherit docstrings?
- Index(es):
Relevant Pages
|