GH-101357: Suppress `OSError` from `pathlib.Path.exists()` and `is_*()` by barneygale · Pull Request #118243 · python/cpython · GitHub

github.com

Tin mới

barneygale:gh-101357

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Improve Windows performance of pathlib.Path.is_file and friends #101357

pathlib.Path.exists()

Merge branch 'main' into

awaiting core review

awaiting core review

Address review feedback

Address review feedback?

View reviewed changes

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

exists() --> stat()

View reviewed changes

pathlib.Path.exists()

Fix test_dir_without_exec_permission on Python 3.14

Fix test_dir_without_exec_permission on Python 3.14

Fix test_dir_without_exec_permission on Python 3.14 Backblaze/b2-sdk-python#560

Use stat.S_ISDIR for local folder scanning instead of Path.is_dir

Add support for python 3.14 equinor/ert#12450

HA 2026.5 support custom-components/pyscript#828

feat(slice-3): PR-S3-6 — operator CLI surface + CommsAdapterMCP Protocol stub (closes #134) alfred-os/AlfredOS#149

fix(install): make provisioning total across filesystem faults bmad-code-org/bmad-loop#448

feat(runtime): distribute canonical resumable capability kernel GlacierEQ/apex-cli#3

Item 52: distinguish pyproj_deps.py's genuine errors from its exit-1 not-found case mixmansoundude/Python_vs_Windows#445

fix(local-fs): make incremental sync actually incremental pipeshub-ai/pipeshub-ai#3036

Make ROCm discovery layout-agnostic (classic + TheRock wheel) and add the non-gating latest-ROCm canary ROCm/aorta#387

Refuse an --output directory inside a version-control checkout ryanduguid/accounting-review-pipeline#134