Skip to content

Conversation

@ssanderson
Copy link

Fixes a crash in Python 2 when serializing non-hashable instancemethods
of built-in types.

Fixes #144.

Fixes a crash in Python 2 when serializing non-hashable instancemethods
of built-in types.
@ssanderson ssanderson changed the title BUG: Handle instancemethods of builtin types. BUG: Handle instance methods of builtin types. Dec 28, 2017
@codecov-io
Copy link

codecov-io commented Dec 28, 2017

Codecov Report

Merging #145 into master will increase coverage by 0.11%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #145      +/-   ##
==========================================
+ Coverage   83.79%   83.91%   +0.11%     
==========================================
  Files           1        1              
  Lines         537      541       +4     
  Branches       98       98              
==========================================
+ Hits          450      454       +4     
  Misses         63       63              
  Partials       24       24
Impacted Files Coverage Δ
cloudpickle/cloudpickle.py 83.91% <100%> (+0.11%) ⬆️

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 03292a3...8a41060. Read the comment docs.

@llllllllll
Copy link
Contributor

lgtm!

@mrocklin
Copy link
Contributor

mrocklin commented Dec 28, 2017 via email

@HyukjinKwon
Copy link
Member

Hi all, while Apache Spark is trying to match the cloudpickle copy in Apache Spark to 0.4.2v, for now, I found this bug fix, which seems introduced from #113. Seems 0.4.2v has this issue -
https://github.com/cloudpipe/cloudpickle/blob/v0.4.2/cloudpickle/cloudpickle.py#L332-L342 , if I didn't missed.

Do we have a kind of backporting policy here? If we have, I would like to suggest to backport this, if I understood correctly.

If there is no for now, let me just suggest to port this patch alone into PySpark's cloudpickle copy.

BryanCutler added a commit to BryanCutler/spark that referenced this pull request Jan 29, 2018
@HyukjinKwon
Copy link
Member

I can push a branch "0.4.x" here and help backporting bugs in this repo as I believe I would be in this affair for a while. Please let me know if you guys are interested in this, or I missed previous discussion about this.

@rgbkrk
Copy link
Member

rgbkrk commented Feb 1, 2018

We'd be happy to have maintenance on branches, so if you're willing to take up the mantle that's ok @HyukjinKwon.

@HyukjinKwon
Copy link
Member

Ah, thank you so much 👍 . Let me try it on this weekend.

@HyukjinKwon
Copy link
Member

I have just pushed branch called "0.4.x" after checking out to v0.4.2 - https://github.com/cloudpipe/cloudpickle/tree/0.4.x.

Will open few PRs against this branch.

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.

7 participants