Skip to content

Conversation

@barneygale
Copy link
Contributor

@barneygalebarneygale commented Dec 29, 2024

Remove the PathBase.stat() method. Its use of the os.stat_result API, with its 10 mandatory fields and low-level types, makes it an awkward fit for virtual filesystems.

We'll look to add a PathBase.info attribute later - see GH-125413.

No user-facing changes because the ABCs are still private.

Remove the `PathBase.stat()` method. Its use of the `os.stat_result` API, with its 10 mandatory fields and low-level types, makes it a poor fit for virtual filesystems. We'll look to add a `PathBase.info` attribute later - see pythonGH-125413.
@barneygalebarneygale enabled auto-merge (squash) December 29, 2024 20:51
@barneygalebarneygale merged commit c78729f into python:mainDec 29, 2024
36 checks passed
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
Remove the `PathBase.stat()` method. Its use of the `os.stat_result` API, with its 10 mandatory fields and low-level types, makes it an awkward fit for virtual filesystems. We'll look to add a `PathBase.info` attribute later - see pythonGH-125413.
Sign up for freeto 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.

1 participant

@barneygale