Skip to content
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

Pickling support #3

Open
embray opened this issue Jan 13, 2021 · 0 comments
Open

Pickling support #3

embray opened this issue Jan 13, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@embray
Copy link
Owner

embray commented Jan 13, 2021

Sage's libgap provides a __reduce__ function for pickling GapElements. However, it's fairly dependent on Sage, since where possible it will convert to the appropriate Sage/Python type, pickle that, and then convert it back to a GAP object when unpickling.

As a fallback it will also pickle the GAP object's str() representation, and then try to gap.eval() it on restore, but this is not always terribly reliable.

So gappy removes explicit pickling support for now, but it might be useful to add back in; need to find out what the current state-of-the-art is for serialization of GAP objects.

@embray embray added the enhancement New feature or request label Jan 13, 2021
embray added a commit that referenced this issue Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant