how to inherit docstrings?

Ben Finney ben+python at benfinney.id.au
Fri Jun 10 01:25:52 EDT 2011


Ben Finney <ben+python at benfinney.id.au> writes:

> class Square(Shape):
>     """ An equal-sided quadrilateral polygon. """

That this docstring is imprecise (it describes any rhombus, not
necessarily a square) is something I hope no-one else notices or draws
attention to.

Oh, darn.

-- 
 \       “The sun never sets on the British Empire. But it rises every |
  `\        morning. The sky must get awfully crowded.” —Steven Wright |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list