I've been trying to do the following:
#[...]
def __history_dependent_simulate(self, node, iterations=1,
*args, **kwargs):
"""
For history-dependent simulations only:
""" + self.simulate.__doc___
What I tried to accomplish here is to have the same documentation for this private method as the documentation of the method simulate
, except with a short introduction. This would allow me to avoid copy-pasting, keep a shorter file and not have to update the documentation for two functions every time.
But it doesn't work. Does anyone know of a reason why, or whether there is a solution?