[MRG+1] Allow passing Path objects to joblib.{dump,load}. - #316
Merged
Conversation
| # By default, if compress is enabled, we want to be using 3 by | ||
| # default | ||
| compress = 3 | ||
| if Path and isinstance(filename, Path): |
Member
There was a problem hiding this comment.
Nitpick: could you write this: "if Path is not None and isinstance(filename, Path)"
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! |
Contributor
Author
|
fixed |
Member
|
LGTM. + 1 for merge Can we have another review from the core team? |
Contributor
|
Member
|
Maybe a mention to this new feature could be added in CHANGES.rst.
+1 for CHANGES.rst. Thanks for spotting that!
|
Contributor
Author
|
Should I create a "0.9.5" entry? |
Member
|
Should I create a "0.9.5" entry?
Yes, please
|
Contributor
Author
|
Done. |
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}.
Member
|
@anntzer FYI you can use "Fix #issue_number" in the PR description so that merging a PR closes automatically the associated issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See #315.