how to inherit docstrings?
Gregory Ewing
greg.ewing at canterbury.ac.nz
Thu Jun 9 18:27:36 EDT 2011
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.
Unfortunately, since unbound methods were ditched,
help(Foo.blarg) no longer has an easy way to find the base
classes, so help from the compiler may be needed.
--
Greg
More information about the Python-list
mailing list