FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-43970: Optimize Path.cwd() in pathlib by kfollstad · Pull Request #25699 · python/cpython · GitHub

Repository navigation

bpo-43970: Optimize Path.cwd() in pathlib - #25699

Merged
ericvsmith merged 1 commit into
python:masterfrom
kfollstad:PathlibCwdFix
Apr 28, 2021
Merged

ericvsmith merged 1 commit into
python:masterfrom
kfollstad:PathlibCwdFix

Conversation

kfollstad commented Apr 28, 2021 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Avoid instantiating a class unnecessarily.

https://bugs.python.org/issue43970

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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

+1 from me.

ericvsmith merged commit 4a85718 into python:master Apr 28, 2021

Copy link
Copy Markdown
Contributor

@kfollstad thanks very much!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL