скажем, у меня есть следующий код:
def func(x, y = 1, z = 2): """ A comment about this function """ return x + y + z another_func = partial(func, z = 4)
Каким будет правильный или Pythonic способ документировать функцию another_func?
См. Частичное () описание на http://docs.python.org/library/functools.html#functools.partial
Как это:
another_func.__doc__ = "My documentation"