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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:af005765-4167-cf30-25f2-dc0110bfa1f2 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | DAE8:225E33:124C7CC:188D9ED:696998E9 |
| html-safe-nonce | e83927dd050468900f1379f2d1ea8c4f9b77aa58f1a940470a80865ae38e3f67 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUU4OjIyNUUzMzoxMjRDN0NDOjE4OEQ5RUQ6Njk2OTk4RTkiLCJ2aXNpdG9yX2lkIjoiNDk2NzgzNTU3ODk0MjQ2MjE4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 61253cb8d1ccc924353e410af3b46c4a4b4a58e3933ccb790672c9df18e72c43 |
| hovercard-subject-tag | pull_request:1218607273 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| 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