Title: gh-101357: use `os.path.exists()` etc from pathlib by barneygale · Pull Request #101361 · python/cpython · GitHub
Open Graph Title: gh-101357: use `os.path.exists()` etc from pathlib by barneygale · Pull Request #101361 · python/cpython
X Title: gh-101357: use `os.path.exists()` etc from pathlib by barneygale · Pull Request #101361 · python/cpython
Description: The following pathlib.Path methods now directly call functions in os.path: samefile() exists() is_dir() is_file() is_symlink() In conjunction with #101324, this improves performance of these methods by using making fewer system calls than stat() The original generic implementations of these methods are preserved in a new, internal _PathWithStat class. In future this may form the basis of a public AbstractPath class. The generic implementation of is_mount(), which was removed in 29650fea, is also restored to this class. Initial implementation Wait for #101324 to land And also a new strict argument to the functions? Measure performance Write news blurb Issue: gh-101357
Open Graph Description: The following pathlib.Path methods now directly call functions in os.path: samefile() exists() is_dir() is_file() is_symlink() In conjunction with #101324, this improves performance of these meth...
X Description: The following pathlib.Path methods now directly call functions in os.path: samefile() exists() is_dir() is_file() is_symlink() In conjunction with #101324, this improves performance of these meth...
Opengraph URL: https://github.com/python/cpython/pull/101361
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d8f8f9d7-ee06-5aab-cc3b-88b0310b2071 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D346:1D9151:11D16DC:17C7FF7:69699863 |
| html-safe-nonce | 1ff3c07e79e8a79860b298143e6b5e70689407a358f7ce64a33941af0515b1c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzQ2OjFEOTE1MToxMUQxNkRDOjE3QzdGRjc6Njk2OTk4NjMiLCJ2aXNpdG9yX2lkIjoiNjMxMzM5NjIxOTQyOTg4NjA1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 17339b374593c249920bdcab01bef7ddd2286ae745d5883933b736aad59e928d |
| hovercard-subject-tag | pull_request:1218607273 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/101361/files |
| twitter:image | https://avatars.githubusercontent.com/u/960340?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/960340?s=400&v=4 |
| og:image:alt | The following pathlib.Path methods now directly call functions in os.path: samefile() exists() is_dir() is_file() is_symlink() In conjunction with #101324, this improves performance of these meth... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width