GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Builtin function for `ntpath.lexists` · Issue #117841 · python/cpython

Builtin function for ntpath.lexists #117841

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Builtin function for ntpath.lexists#117841
Copy link
Labels
type-featureA feature request or enhancementA feature request or enhancement

Description

@nineteendo
nineteendo
opened on Apr 13, 2024
Issue body actions

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:

  • gh-117705: Add follow_symlinks to os.path.exists() #117729

Linked PRs

  • gh-117841: Add C implementation of ntpath.lexists #117842
  • GH-117841: Speed up pathlib.Path.glob() on Windows by using lexists() #117858
Reacted by Eryk Sun and Barney Gale

Activity

  1. nineteendo
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Apr 13, 2024
  2. nineteendo commented on May 9, 2024

    @nineteendo
    nineteendo
    on May 9, 2024
    ContributorAuthor
    More actions

    Tracking further in #118507

  3. nineteendo
    closed this as not plannedon May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.