-
Notifications
You must be signed in to change notification settings - Fork 418
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
[MRG+1] Allow passing Path objects to joblib.{dump,load}. #316
Conversation
@@ -389,6 +393,8 @@ def dump(value, filename, compress=0, cache_size=100, protocol=None): | |||
# By default, if compress is enabled, we want to be using 3 by | |||
# default | |||
compress = 3 | |||
if Path and isinstance(filename, Path): |
There was a problem hiding this comment.
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)"
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! |
fixed |
LGTM. + 1 for merge Can we have another review from the core team? |
|
Maybe a mention to this new feature could be added in CHANGES.rst.
+1 for CHANGES.rst. Thanks for spotting that!
|
Should I create a "0.9.5" entry? |
Should I create a "0.9.5" entry?
Yes, please
|
Done. |
LGTM, merging thanks ! |
[MRG+1] Allow passing Path objects to joblib.{dump,load}.
@anntzer FYI you can use "Fix #issue_number" in the PR description so that merging a PR closes automatically the associated issue. |
See #315.