how to inherit docstrings?
Ben Finney
ben+python at benfinney.id.au
Thu Jun 9 17:33:34 EDT 2011
Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes:
> On Thu, 09 Jun 2011 17:44:32 +1000, Ben Finney wrote:
>
> > Eric Snow <ericsnowcurrently at gmail.com> writes:
> >
> >> AttributeError: attribute '__doc__' of 'type' objects is not writable
> >>
> >> That is on 3.3.
> >
> > Well, that sucks :-(
> >
> > Where can we see the discussion of that change before it was
> > implemented?
>
> It goes back to Python 2.2, when new style classes were first introduced.
[…]
> It's an unnecessary restriction, as far as I'm concerned, but an old one.
Well, it's incompatible with the Python compiler I keep in my head. Have
these developers no consideration for backward-thinking-compatibility?
--
\ “The fact that I have no remedy for all the sorrows of the |
`\ world is no reason for my accepting yours. It simply supports |
_o__) the strong probability that yours is a fake.” —Henry L. Mencken |
Ben Finney
More information about the Python-list
mailing list