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

add pickleutil.PICKLE_PROTOCOL #6029

Merged
merged 1 commit into from
Jun 26, 2014
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Jun 21, 2014

instead of hardcoding -1.

default to DEFAULT_PROTOCOL if defined (Python 3.4), and HIGHEST_PROTOCOL
otherwise.

Matches dill behavior

closes #5998

instead of hardcoding `-1`.

default to DEFAULT_PROTOCOL if defined (Python 3.4), and HIGHEST_PROTOCOL otherwise.

Matches dill behavior
@minrk minrk added this to the 2.2 milestone Jun 21, 2014
@Carreau
Copy link
Member

Carreau commented Jun 22, 2014

+1

@@ -28,6 +28,11 @@
from types import ClassType
class_type = (type, ClassType)

try:
Copy link
Member

Choose a reason for hiding this comment

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

Do we want a comment explaining that DEFAULT_PROTOCOL is only defined in Python 3?

takluyver added a commit that referenced this pull request Jun 26, 2014
add pickleutil.PICKLE_PROTOCOL
@takluyver takluyver merged commit 4a94456 into ipython:master Jun 26, 2014
@minrk minrk deleted the dumps-protocol branch June 26, 2014 02:59
minrk added a commit that referenced this pull request Jul 7, 2014
instead of hardcoding `-1`.

default to DEFAULT_PROTOCOL if defined (Python 3.4), and HIGHEST_PROTOCOL
otherwise.

...
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
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_dill does not work in Python 3.4
3 participants