Visitar URL original
Builtin function for `ntpath.lexists` · Issue #117841 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260103195120/https://github.com/python/cpython/issues/117841
Skip to content

Builtin function for ntpath.lexists #117841

@nineteendo

Description

@nineteendo

Feature or enhancement

Proposal:

The lexists() implementation in genericpath use os.stat(). This is overkill on Windows. We should use a simpler builtin function. This can also benefit pathlib.Path.glob().

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions