Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 22, 2024

Conversation

nineteendo
Copy link
Contributor

@nineteendo nineteendo commented May 22, 2024

@nineteendo
Copy link
Contributor Author

nineteendo commented May 22, 2024

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) [3.12] gh-118507 : Refactor nt._path_is* to improve applicability for other cases (GH-118755) May 22, 2024
@zooba
Copy link
Member

zooba commented May 22, 2024

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
Copy link
Contributor Author

nineteendo commented May 22, 2024

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) [3.12] gh-118507 : Fix ntpath.isfile for pipes. May 22, 2024
@zooba zooba merged commit 874a4f7 into python:3.12 May 22, 2024
27 checks passed
@zooba
Copy link
Member

zooba commented May 22, 2024

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants