-
Notifications
You must be signed in to change notification settings - Fork 64
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
Directly expose serialization function #449
Comments
Sure. A corresponding |
mtreinish
added a commit
to mtreinish/symengine.py
that referenced
this issue
Sep 5, 2023
This commit adds a standalone serialization function to the symengine wrapper module. Previously there was a load_basic() function that could be used for directly deserializing the payload without going through pickle, but no corresponding function for serialization. A new function save_basic() is added here to perform this function which will enable users to directly roundtrip symengine objects through binary serialization. Fixes symengine#449
mtreinish
added a commit
to mtreinish/symengine.py
that referenced
this issue
Sep 5, 2023
This commit adds a standalone serialization function to the symengine wrapper module. Previously there was a load_basic() function that could be used for directly deserializing the payload without going through pickle, but no corresponding function for serialization. A new function save_basic() is added here to perform this function which will enable users to directly roundtrip symengine objects through binary serialization. Fixes symengine#449
mtreinish
added a commit
to mtreinish/symengine.py
that referenced
this issue
Sep 5, 2023
This commit adds a standalone serialization function to the symengine wrapper module. Previously there was a load_basic() function that could be used for directly deserializing the payload without going through pickle, but no corresponding function for serialization. A new function save_basic() is added here to perform this function which will enable users to directly roundtrip symengine objects through binary serialization. Fixes symengine#449
mtreinish
added a commit
to mtreinish/symengine.py
that referenced
this issue
Sep 5, 2023
This commit adds a standalone serialization function to the symengine wrapper module. Previously there was a load_basic() function that could be used for directly deserializing the payload without going through pickle, but no corresponding function for serialization. A new function save_basic() is added here to perform this function which will enable users to directly roundtrip symengine objects through binary serialization. Fixes symengine#449
mtreinish
added a commit
to mtreinish/symengine.py
that referenced
this issue
Sep 5, 2023
This commit adds a standalone serialization function to the symengine wrapper module. Previously there was a load_basic() function that could be used for directly deserializing the payload without going through pickle, but no corresponding function for serialization. A new function save_basic() is added here to perform this function which will enable users to directly roundtrip symengine objects through binary serialization. Fixes symengine#449
mtreinish
added a commit
to mtreinish/symengine.py
that referenced
this issue
Sep 5, 2023
This commit adds a standalone serialization function to the symengine wrapper module. Previously there was a load_basic() function that could be used for directly deserializing the payload without going through pickle, but no corresponding function for serialization. A new function save_basic() is added here to perform this function which will enable users to directly roundtrip symengine objects through binary serialization. Fixes symengine#449
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be really nice if the serialization functions used internally by the pickle support were exposed as direct functions. Basically I have a use case where I'd like to serialize the raw parameter expressions without using pickle. I can implement this currently by doing something like:
But it feels weird to use explicitly internal functions and dunders like this to get the serialization like this. It would be great if there were public functions exposed to do this.
I'd be glad to contribute this if it's something that people agree with.
The text was updated successfully, but these errors were encountered: