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: Tim Paine <[email protected]>
Signed-off-by: Petr Ogarok <[email protected]>
Signed-off-by: Tim Paine <[email protected]>
Signed-off-by: Petr Ogarok <[email protected]>
Signed-off-by: Tim Paine <[email protected]>
Signed-off-by: Petr Ogarok <[email protected]>
Signed-off-by: Tim Paine <[email protected]>
Signed-off-by: Petr Ogarok <[email protected]>
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 <[email protected]>
@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 <[email protected]>

* Remove note about gnu toolchain from docs

Signed-off-by: Tim Paine <[email protected]>
Signed-off-by: Petr Ogarok <[email protected]>

* fix listing/linting typo

Signed-off-by: Tim Paine <[email protected]>
Signed-off-by: Petr Ogarok <[email protected]>

* add markdown linters to wiki

Signed-off-by: Tim Paine <[email protected]>
Signed-off-by: Petr Ogarok <[email protected]>

* Force numpy<2 for now

Signed-off-by: Tim Paine <[email protected]>
Signed-off-by: Petr Ogarok <[email protected]>

* Implement pickling for PyStructList and FastList

Signed-off-by: Petr Ogarok <[email protected]>

* Clean up code changes for pickling impl

Signed-off-by: Petr Ogarok <[email protected]>

* Fix linting

Signed-off-by: Petr Ogarok <[email protected]>

* Remove Py_NewRef as not available in PY3.8

Signed-off-by: Petr Ogarok <[email protected]>

* Address code review comments

Signed-off-by: Petr Ogarok <[email protected]>

---------

Signed-off-by: Petr Ogarok <[email protected]>
Signed-off-by: Tim Paine <[email protected]>
Co-authored-by: Tim Paine <[email protected]>
@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