-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-39783: Optimize contruction of Path and PurePath objects #20288
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
Conversation
Could this be implemented in |
Yes, thanks! |
LGTM! |
@@ -686,7 +686,9 @@ def _parse_args(cls, args): | |||
return cls._flavour.parse_parts(parts) | |||
|
|||
@classmethod | |||
def _from_parts(cls, args, init=True): | |||
def _from_parts(cls, args, kwargs=None, *, init=True): |
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.
It looks like kwargs
is not needed as it's not used anywhere?
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.
It has been removed on main, you have a merge conflict now.
Closing - see rationale in issue. Thanks all the same for the patch. |
Now that the
_closed
attribute has been removed we can move ahead with this.https://bugs.python.org/issue39783