Skip to content

Conversation

@kfollstad
Copy link
Contributor

@kfollstad kfollstad commented Apr 28, 2021

Avoid instantiating a class unnecessarily.

https://bugs.python.org/issue43970

@domdfcoding
Copy link
Contributor

cc @barneygale as I've seen you've been working on improving pathlib

@barneygale
Copy link
Contributor

LGTM! This wasn't previously possible because _accessor was set at initialization time, but that changed in 2219187.

+1 from me.

@ericvsmith ericvsmith merged commit 4a85718 into python:master Apr 28, 2021
@barneygale
Copy link
Contributor

@kfollstad thanks very much!

@kfollstad kfollstad deleted the PathlibCwdFix branch April 29, 2021 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants