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

a close reading of the pickle module #12971

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

tungol
Copy link
Contributor

@tungol tungol commented Nov 7, 2024

I didn't go in planning to split the C _pickle.Picker and python pickle._Pickler implementations, but then the _Pickler-only classvar was there and I didn't like copying that into _pickle.pyi.

Pickler.memo and Unpickler.memo I went as far as I did with it because of the comment here: https://github.com/python/cpython/blob/3.12/Modules/_pickle.c#L4839

which pretty strongly implies that somebody out there is using it.

This comment has been minimized.

@tungol tungol marked this pull request as draft November 7, 2024 06:32
@tungol tungol marked this pull request as ready for review November 7, 2024 07:00
stdlib/_pickle.pyi Outdated Show resolved Hide resolved
this is probably better

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Nov 9, 2024

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant