Skip to content

Conversation

@PeterJCLaw
Copy link
Contributor

This is based on the same approach used for things like gzip and tarfile, with the members needed determined by inspection of the pure-Python implementation of pickle within the cpython repo (i.e: https://github.com/python/cpython/blob/main/Lib/pickle.py).

Fixes #5477

@github-actions

This comment has been minimized.

@PeterJCLaw PeterJCLaw force-pushed the fix-5477-pickle-io-protocols branch from abcb979 to d0f3ec8 Compare October 1, 2021 22:01
This is based on the same approach used for things like gzip and
tarfile, with the members needed determined by inspection of the
pure-Python implementation of pickle within the cpython repo.

Fixes python#5477
@PeterJCLaw PeterJCLaw force-pushed the fix-5477-pickle-io-protocols branch from d0f3ec8 to 09020c1 Compare October 1, 2021 22:09
@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2021

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

@PeterJCLaw PeterJCLaw marked this pull request as ready for review October 1, 2021 22:17
Copy link
Collaborator

@Akuli Akuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Akuli Akuli merged commit 9b86402 into python:master Oct 2, 2021
@PeterJCLaw PeterJCLaw deleted the fix-5477-pickle-io-protocols branch October 2, 2021 11:19
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.

Use Protocol for pickle.load

2 participants