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

Allow protocol=0, default to HIGHEST_PROTOCOL #1

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

ddelange
Copy link
Contributor

@ddelange ddelange commented Oct 4, 2020

- The `or` statement prevented setting protocol=0
- Both pickle and dill default to HIGHEST_PROTOCOL when a negative integer is passed. Protocol 4 and 5 (3.4+, 3.8+) provide numerous advantages: https://docs.python.org/3/library/pickle.html#pickle-protocols
Revert removal of six import
Copy link
Owner

@victorfsf victorfsf left a comment

Choose a reason for hiding this comment

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

Thanks @ddelange!

@victorfsf victorfsf merged commit 949a4e6 into victorfsf:master Oct 5, 2020
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