◐ Shell
clean mode source ↗

bpo-39783: Optimize contruction of Path and PurePath objects by remilapeyre · Pull Request #20288 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@remilapeyre remilapeyre changed the title bpo-39782: Optimize contruction of Path and PurePath objects bpo-39783: Optimize contruction of Path and PurePath objects

May 21, 2020

@barneygale

Could this be implemented in _from_parts() to avoid doubling up the code?

@remilapeyre

Could this be implemented in _from_parts() to avoid doubling up the code?

Yes, thanks!

@barneygale

akulakov


@classmethod
def _from_parts(cls, args, init=True):
def _from_parts(cls, args, kwargs=None, *, init=True):

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?

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.

@anntzer anntzer mannequin mentioned this pull request

Apr 11, 2023

@barneygale

Closing - see rationale in issue. Thanks all the same for the patch.

Labels