-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata of wrapper functions not preserved #602
Comments
Hi @mmckerns, I'm still seeing this issue with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dill
seems to not preserve the metadata of functions wrapped withfunctools.wraps
. Withdill
0.3.6 on Python 3.11.1, the following code:prints something along the lines of
where the unpickled function should have name
a
like the original does.I thought the issue might be that the
__qualname__
attribute of the function wasn't getting saved, but setting that attribute manually rather than usingfunctools.wraps
actually works; the codeprints something like
where now the name of the unpickled function is correct. So I don't know what's going on.
The text was updated successfully, but these errors were encountered: