We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
The newly implemented PyStructList class is not pickleable, which causes any csp.Struct with a list field to also become non-pickleable.
PyStructList
To Reproduce
import csp import pickle from typing import List class Foo(csp.Struct): a : List[int] f = Foo(a=[1,2,3]) u = pickle.dumps(f)
Expected behavior
The type should be made pickleable just as any Python object would be pickled.
Error Message
Traceback (most recent call last): File "ex_foo.py", line 9, in <module> u = pickle.dumps(f) _pickle.PicklingError: Can't pickle <class '_cspimpl.PyStructList'>: import of module '_cspimpl' failed
Runtime Environment
0.0.4 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:36:13) [GCC 12.3.0] linux
Additional context
The text was updated successfully, but these errors were encountered:
ogarokpeter
Successfully merging a pull request may close this issue.
Describe the bug
The newly implemented
PyStructList
class is not pickleable, which causes any csp.Struct with a list field to also become non-pickleable.To Reproduce
Expected behavior
The type should be made pickleable just as any Python object would be pickled.
Error Message
Runtime Environment
0.0.4
3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:36:13) [GCC 12.3.0]
linux
Additional context
The text was updated successfully, but these errors were encountered: