Skip to content
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

FEA parallel_config context manager to allow more fine-grained control #1392

Merged
merged 19 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions joblib/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,11 @@ def eval_(node):
return operators[type(node.op)](eval_(node.operand))
else:
raise TypeError(node)


class _Sentinel:
def __init__(self, default_value):
self.default_value = default_value

def __repr__(self):
return f"default({self.default_value!r})"