You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
smarie
changed the title
using partial(f) to create a copy does not work ? (to check)
using partial(f) to create a "copy" does not work as with functools.partial ? (to check)
Oct 6, 2021
Actually it does work, but it does not preserve the link to the original function, since @wraps is called with a new signature, while it does not actually change.
I'll just fix this tiny consistency bit, but if we want a "function copy" API we should rather provide an explicit copy_fun(f, deep=False) api
smarie
changed the title
using partial(f) to create a "copy" does not work as with functools.partial ? (to check)
using partial(f) to create a "copy" is not equivalent to wraps(f)(f)Oct 8, 2021
No description provided.
The text was updated successfully, but these errors were encountered: