Skip to content

[3.12] gh-118507 : Fix ntpath.isfile for pipes. - #119381

Merged
zooba merged 5 commits into
python:3.12from
nineteendo:backport-b641825-3.12
May 22, 2024
Merged

[3.12] gh-118507 : Fix ntpath.isfile for pipes.#119381
zooba merged 5 commits into
python:3.12from
nineteendo:backport-b641825-3.12

Conversation

@nineteendo

@nineteendonineteendo commented May 22, 2024

Copy link
Copy Markdown
Contributor

@nineteendo

nineteendo commented May 22, 2024

Copy link
Copy Markdown
ContributorAuthor

I think I didn't include unrelated changes. Is it fine to use the C version for ntpath.isjunction() and ntpath.lexists()? (We did so for 3.13 too) Otherwise I'll revert that change.

@nineteendo
nineteendo marked this pull request as ready for review May 22, 2024 07:23
@nineteendonineteendo changed the title [3.12] gh-118507 : Refactor nt._path_is* (GH-118755)[3.12] gh-118507 : Refactor nt._path_is* to improve applicability for other cases (GH-118755)May 22, 2024
@zooba

Copy link
Copy Markdown
Member

Is it fine to use the C version for ntpath.isjunction() and ntpath.lexists()?

Let's revert those, just to minimise the risk of changed behaviour. We can consider backporting them later once we're more confident.

@zoobazooba self-assigned this May 22, 2024
@nineteendo

nineteendo commented May 22, 2024

Copy link
Copy Markdown
ContributorAuthor

Done, I also removed the C implementation for these functions to not give anyone ideas...
I can make a draft pull request afterwards to make it clear the issue can't be closed yet.

@nineteendonineteendo changed the title [3.12] gh-118507 : Refactor nt._path_is* to improve applicability for other cases (GH-118755)[3.12] gh-118507 : Fix ntpath.isfile for pipes.May 22, 2024
@zooba
zooba merged commit 874a4f7 into python:3.12May 22, 2024
@zooba

Copy link
Copy Markdown
Member

A draft pull request is a good idea.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@nineteendo@zooba