Uh oh!
There was an error while loading. Please reload this page.
gh-99631: Add custom loads and dumps support for the shelve module - #99632
gh-99631: Add custom loads and dumps support for the shelve module#99632furkanonder wants to merge 17 commits into
Conversation
merwok
commented
Dec 1, 2022
Could you add docs and tests? |
serhiy-storchaka
commented
Dec 1, 2022
Do we need to specify the pickler and unpickler classes or just |
isidentical
commented
Dec 2, 2022
I'd also go for |
furkanonder
commented
Dec 5, 2022
Doc and test have been added. @merwok The pickler and unpickler classes have been replaced with |
isidentical
left a comment
There was a problem hiding this comment.
Thanks a lot for your efforts @furkanonder, I have a few minor suggestions but this already looks great!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
✅ Deploy Preview for python-cpython-preview canceled.
|
serhiy-storchaka
commented
Dec 8, 2022
Should we require the serializer to accept the pickle protocol? It does not make sense for other than pickle formats. What happens if only serializer or only deserializer are passed? |
furkanonder
commented
Dec 9, 2022
elif (serializerisNoneanddeserializerisnotNone) or (deserializerisNoneandserializerisnotNone):
raiseShelveError("Serializer and deserializer must be defined together.")In this case, shelve raises an error. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
encukou
commented
Apr 9, 2024
This seems to have been forgotten over end-of-year break in 2022. Do you want to revive it? The |
furkanonder
commented
Apr 18, 2024
I accidentally deleted my forked repository, so I can't update my old PRs. So I opened a new PR. |
Uh oh!
There was an error while loading. Please reload this page.