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

Implement pickling for PyStructList and FastList #285

Merged
merged 10 commits into from
Jun 18, 2024
Merged

Conversation

ogarokpeter
Copy link
Collaborator

Fixes #273

ogarokpeter and others added 7 commits June 18, 2024 06:01
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>
Signed-off-by: Tim Paine <timothy.paine@cubistsystematic.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>
Signed-off-by: Tim Paine <timothy.paine@cubistsystematic.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>
Signed-off-by: Tim Paine <timothy.paine@cubistsystematic.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>
Signed-off-by: Tim Paine <timothy.paine@cubistsystematic.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>
cpp/csp/python/PyStructFastList_impl.h Show resolved Hide resolved
cpp/csp/python/PyStructFastList_impl.h Outdated Show resolved Hide resolved
cpp/csp/python/PyStructFastList_impl.h Outdated Show resolved Hide resolved
cpp/csp/python/PyStructList_impl.h Outdated Show resolved Hide resolved
cpp/csp/python/PyStructList_impl.h Outdated Show resolved Hide resolved
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>
@ogarokpeter ogarokpeter merged commit c7a2088 into main Jun 18, 2024
30 checks passed
@ogarokpeter ogarokpeter deleted the bug/pickle branch June 18, 2024 15:57
wrieg123 pushed a commit to wrieg123/csp that referenced this pull request Jul 16, 2024
* Attempt to pinpoint PicklingError: unable to import _cspimpl

Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>

* Remove note about gnu toolchain from docs

Signed-off-by: Tim Paine <timothy.paine@cubistsystematic.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>

* fix listing/linting typo

Signed-off-by: Tim Paine <timothy.paine@cubistsystematic.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>

* add markdown linters to wiki

Signed-off-by: Tim Paine <timothy.paine@cubistsystematic.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>

* Force numpy<2 for now

Signed-off-by: Tim Paine <timothy.paine@cubistsystematic.com>
Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>

* Implement pickling for PyStructList and FastList

Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>

* Clean up code changes for pickling impl

Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>

* Fix linting

Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>

* Remove Py_NewRef as not available in PY3.8

Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>

* Address code review comments

Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>

---------

Signed-off-by: Petr Ogarok <petr.ogarok@point72.com>
Signed-off-by: Tim Paine <timothy.paine@cubistsystematic.com>
Co-authored-by: Tim Paine <timothy.paine@cubistsystematic.com>
@timkpaine timkpaine added the type: enhancement Issues and PRs related to improvements to existing features label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Issues and PRs related to improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PyStructList is not pickleable, which breaks pickling for any Struct with a list field
3 participants