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

Remove save_reduce() override #121

Merged
merged 1 commit into from
Oct 26, 2017
Merged

Conversation

pitrou
Copy link
Member

@pitrou pitrou commented Oct 26, 2017

It is now the exactly the same code as in Python 2's Pickler class: see https://github.com/python/cpython/blob/2.7/Lib/pickle.py#L345-L411

It is the exactly the same code as in Python 2's Pickler class.
@pitrou pitrou requested review from ygravrand and removed request for ygravrand October 26, 2017 16:20
@codecov-io
Copy link

codecov-io commented Oct 26, 2017

Codecov Report

Merging #121 into master will increase coverage by 1.4%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #121     +/-   ##
=========================================
+ Coverage   84.91%   86.32%   +1.4%     
=========================================
  Files           2        2             
  Lines         570      541     -29     
  Branches      107       98      -9     
=========================================
- Hits          484      467     -17     
+ Misses         61       55      -6     
+ Partials       25       19      -6
Impacted Files Coverage Δ
cloudpickle/cloudpickle.py 86.24% <ø> (+1.41%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bda339f...0b96167. Read the comment docs.

@pitrou
Copy link
Member Author

pitrou commented Oct 26, 2017

@rgbkrk, do you think this is ok?

@rgbkrk
Copy link
Member

rgbkrk commented Oct 26, 2017

Considering the save_reduce implementation is also the same on 2.6 (I just did a side-by-side compare), I think this is definitely ok.

@rgbkrk rgbkrk merged commit 2da4c24 into cloudpipe:master Oct 26, 2017
@pitrou pitrou deleted the remove_save_reduce branch October 26, 2017 17:46
HyukjinKwon pushed a commit to HyukjinKwon/spark that referenced this pull request Mar 8, 2018
## What changes were proposed in this pull request?

The version of cloudpickle in PySpark was close to version 0.4.0 with some additional backported fixes and some minor additions for Spark related things.  This update removes Spark related changes and matches cloudpickle [v0.4.3](https://github.com/cloudpipe/cloudpickle/releases/tag/v0.4.3):

Changes by updating to 0.4.3 include:
* Fix pickling of named tuples cloudpipe/cloudpickle#113
* Built in type constructors for PyPy compatibility [here](cloudpipe/cloudpickle@d84980c)
* Fix memoryview support cloudpipe/cloudpickle#122
* Improved compatibility with other cloudpickle versions cloudpipe/cloudpickle#128
* Several cleanups cloudpipe/cloudpickle#121 and [here](cloudpipe/cloudpickle@c91aaf1)
* [MRG] Regression on pickling classes from the __main__ module cloudpipe/cloudpickle#149
* BUG: Handle instance methods of builtin types cloudpipe/cloudpickle#154
* Fix <span>#</span>129 : do not silence RuntimeError in dump() cloudpipe/cloudpickle#153

## How was this patch tested?

Existing pyspark.tests using python 2.7.14, 3.5.2, 3.6.3

Author: Bryan Cutler <cutlerb@gmail.com>

Closes apache#20373 from BryanCutler/pyspark-update-cloudpickle-42-SPARK-23159.
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