I would like to make a deepcopy of a function in Python. The copy module is not helpful, according to the documentation, which says:
This mo
from functools import partial def a(): """Returns 1""" return 1 b = partial(a) b.__doc__ = """Returns 1, OR DOES IT!""" print help(a) print help(b)
Wrap it as a partial?