Skip to content

[BEAM-2365] Use the highest pickle protocol available.#3226

Closed
robertwb wants to merge 3 commits into
apache:masterfrom
robertwb:pickle
Closed

[BEAM-2365] Use the highest pickle protocol available.#3226
robertwb wants to merge 3 commits into
apache:masterfrom
robertwb:pickle

Conversation

@robertwb
Copy link
Copy Markdown
Contributor

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify.
  • Replace <Jira issue #> in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

@robertwb
Copy link
Copy Markdown
Contributor Author

R: @vikkyrk

@robertwb
Copy link
Copy Markdown
Contributor Author

jenkins: retest this please

@coveralls
Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling accd42b on robertwb:pickle into ** on apache:master**.

# We need to use the dill pickler for objects of certain custom classes,
# including, for example, ones that contain lambdas.
try:
return pickle.dumps(o)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Use https://docs.python.org/2/library/pickle.html#pickle.HIGHEST_PROTOCOL to be more clear with the intent?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@vikkyrk
Copy link
Copy Markdown
Contributor

vikkyrk commented May 26, 2017

LGTM

@coveralls
Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 45fb55a on robertwb:pickle into ** on apache:master**.

@asfgit asfgit closed this in 2994fce May 26, 2017
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.

3 participants