Somewhat related to this subject - is it possible to automatically put
into documentation parameters that were defined and documented in the
"base method'? E.g. if I have

class A():
   def f(self, a=1):
   """
   INPUT:
   - ``a`` -- integer
   """
   ...

class B(A):
   def f(self, b=2, *args, **kwds):
   """
   INPUT:
   - ``b`` -- integer
   - the rest is the same as for :meth:`A.f`
   """
   ...
   super(B, self).f(*args, **kwds)

I want to be able to see the description of ``a`` when I type

sage: B.f?

As I understand, currently the only way is to copy-paste the initial
description, but that is a bit annoying and can eventually lead to
inaccuracies if A is changed and B is not updated.

Thank you,
Andrey

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to