Skip to content

a close reading of the pickle module - #12971

Merged
JelleZijlstra merged 6 commits into
python:mainfrom
tungol:pickle
Dec 4, 2024
Merged

JelleZijlstra merged 6 commits into
python:mainfrom
tungol:pickle

Conversation

@tungol

@tungol tungol commented Nov 7, 2024

Copy link
Copy Markdown
Contributor

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.

@github-actions

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
Comment thread stdlib/_pickle.pyi Outdated
this is probably better
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

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

@JelleZijlstra
JelleZijlstra merged commit fe26dea into python:main Dec 4, 2024
@tungol
tungol deleted the pickle branch December 4, 2024 05:23
kbaikov pushed a commit to kbaikov/typeshed that referenced this pull request Dec 5, 2024
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.

2 participants