Skip to content

[MRG+1] Allow passing Path objects to joblib.{dump,load}. - #316

Merged
lesteve merged 1 commit into
joblib:masterfrom
anntzer:pathlib-dump-load
Mar 7, 2016
Merged

[MRG+1] Allow passing Path objects to joblib.{dump,load}.#316
lesteve merged 1 commit into
joblib:masterfrom
anntzer:pathlib-dump-load

Conversation

@anntzer

@anntzer anntzer commented Mar 6, 2016

Copy link
Copy Markdown
Contributor

See #315.

Comment thread joblib/numpy_pickle.py Outdated
# By default, if compress is enabled, we want to be using 3 by
# default
compress = 3
if Path and isinstance(filename, Path):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nitpick: could you write this: "if Path is not None and isinstance(filename, Path)"

@GaelVaroquaux

Copy link
Copy Markdown
Member

Beside the 2 nitpicks, that are just cosmetics to make the intent of the code more explicit, this is 👍 from me. Thank you very much!

@anntzer

anntzer commented Mar 6, 2016

Copy link
Copy Markdown
Contributor Author

fixed

@GaelVaroquaux GaelVaroquaux changed the title Allow passing Path objects to joblib.{dump,load}. [MRG+1] Allow passing Path objects to joblib.{dump,load}. Mar 6, 2016
@GaelVaroquaux

Copy link
Copy Markdown
Member

LGTM. + 1 for merge

Can we have another review from the core team?

@aabadie

aabadie commented Mar 6, 2016

Copy link
Copy Markdown
Contributor

Can we have another review from the core team?
Just had a look, it seems all good to me as well. Maybe a mention to this new feature could be added in CHANGES.rst.

@GaelVaroquaux

GaelVaroquaux commented Mar 6, 2016 via email

Copy link
Copy Markdown
Member

@anntzer

anntzer commented Mar 7, 2016

Copy link
Copy Markdown
Contributor Author

Should I create a "0.9.5" entry?

@GaelVaroquaux

GaelVaroquaux commented Mar 7, 2016 via email

Copy link
Copy Markdown
Member

@anntzer

anntzer commented Mar 7, 2016

Copy link
Copy Markdown
Contributor Author

Done.

@lesteve

lesteve commented Mar 7, 2016

Copy link
Copy Markdown
Member

LGTM, merging thanks !

lesteve added a commit that referenced this pull request Mar 7, 2016
[MRG+1] Allow passing Path objects to joblib.{dump,load}.
@lesteve
lesteve merged commit 81e1a71 into joblib:master Mar 7, 2016
@lesteve

lesteve commented Mar 7, 2016

Copy link
Copy Markdown
Member

@anntzer FYI you can use "Fix #issue_number" in the PR description so that merging a PR closes automatically the associated issue.

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.

4 participants