Skip to content

FIX globals for functions defined in __main__ - #188

Merged
ogrisel merged 7 commits into
cloudpipe:masterfrom
tomMoral:FIX_global_var_pickling
Aug 23, 2018
Merged

FIX globals for functions defined in __main__ #188
ogrisel merged 7 commits into
cloudpipe:masterfrom
tomMoral:FIX_global_var_pickling

Conversation

@tomMoral

Copy link
Copy Markdown
Contributor

Fix#187

The cause of this issue is that global variables defined in __main__ are not shared by unpickled functions and their value are overwritten at each unpickling.

@codecov-io

codecov-io commented Aug 15, 2018

Copy link
Copy Markdown

Codecov Report

Merging #188 into master will increase coverage by 0.58%.
The diff coverage is 100%.

Impacted file tree graph

@@ Coverage Diff @@## master #188 +/- ##
==========================================
+ Coverage 84.09% 84.68% +0.58% 
==========================================
Files 1 1 Lines 547 555 +8 Branches 99 104 +5 ==========================================
+ Hits 460 470 +10 + Misses 63 62 -1 + Partials 24 23 -1
Impacted FilesCoverage Δ
cloudpickle/cloudpickle.py84.68% <100%> (+0.58%)⬆️

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 5141802...d2e879b. Read the comment docs.

Sign up for freeto 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

@tomMoral@codecov-io@ogrisel