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

zooba merged 5 commits into
python:3.12from
nineteendo:backport-b641825-3.12

Conversation

@nineteendo

@nineteendo nineteendo commented May 22, 2024 •

Copy link
Copy Markdown
Contributor
@nineteendo

nineteendo commented May 22, 2024 •

Copy link
Copy Markdown
Contributor Author

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
@nineteendo nineteendo changed the title [3.12] gh-118507 : Refactor nt._path_is* (GH-118755) May 22, 2024
@zooba

zooba commented May 22, 2024

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.

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

nineteendo commented May 22, 2024 •

Copy link
Copy Markdown
Contributor Author

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.

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

zooba commented May 22, 2024

Copy link
Copy Markdown
Member

A draft pull request is a good idea.

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

Labels

None yet

2 participants