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
Firstly, it's very much possible that this is not an issue with dill, specifically. But I thought I'd post it here first since that seemed the most relevant to me.
Secondly, it's possible I've overlooked something simple and this is not an actual issue. If so, I do apologise. I did try and look for an existing issue but could not seem to find one.
Now for the issue at hand.
When using dill.dump to save a partial function in python<3.11 the result can not be read off the disk in python3.11 (didn't try 3.12) in a working order. To be specific, the partial method is read off the disk, but cannot be successfully called.
See an error (TypeError: 'int' object is not callable)
The tests were carried out:
OS: Ubuntu 22.04.4 LTS kernel 6.5.0-26
Python3.10.12
Latest available on Ubuntu natively
Python3.11.8
Latest available on Ubuntu natively
dill==0.3.8
PS:
The issue first came to my attention for a bigger gap in python version (as well as a change in dill version). However, I got to this example when trying to figure out what was going wrong.
Any guidance would be much appreciated. Even if it is to go and learn something new.
The text was updated successfully, but these errors were encountered:
Firstly, it's very much possible that this is not an issue with
dill
, specifically. But I thought I'd post it here first since that seemed the most relevant to me.Secondly, it's possible I've overlooked something simple and this is not an actual issue. If so, I do apologise. I did try and look for an existing issue but could not seem to find one.
Now for the issue at hand.
When using
dill.dump
to save apartial
function inpython<3.11
the result can not be read off the disk in python3.11 (didn't try 3.12) in a working order. To be specific, the partial method is read off the disk, but cannot be successfully called.The minimal-ish version I ran into the issue with:
DUMP: https://gist.github.com/mart-r/0f1bb54fa2bad0df470e3f70075156ae
LOAD: https://gist.github.com/mart-r/358f112097cfeca1f05babec469992c0
Scenario 1 (Working on 3.10)
Scenario 2 (Working on 3.11)
Scenario 3 (NOT WORKING)
TypeError: 'int' object is not callable
)The tests were carried out:
PS:
The issue first came to my attention for a bigger gap in python version (as well as a change in
dill
version). However, I got to this example when trying to figure out what was going wrong.Any guidance would be much appreciated. Even if it is to go and learn something new.
The text was updated successfully, but these errors were encountered: