-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
pathlib.PureWindowsPath comparison results vary between Windows and Posix #104947
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
topic-pathlib
type-bug
An unexpected behavior, bug, or error
Comments
barneygale
added
type-bug
An unexpected behavior, bug, or error
3.12
bugs and security fixes
topic-pathlib
3.13
bugs and security fixes
labels
May 25, 2023
barneygale
added a commit
to barneygale/cpython
that referenced
this issue
May 25, 2023
…across OSs Use `str.lower()` rather than `ntpath.normcase()` to normalize case of Windows paths. This restores behaviour from Python 3.11.
barneygale
added a commit
that referenced
this issue
May 26, 2023
… platforms (GH-104948) Use `str.lower()` rather than `ntpath.normcase()` to normalize case of Windows paths. This restores behaviour from Python 3.11. Co-authored-by: Gregory P. Smith <greg@krypto.org>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 26, 2023
…across platforms (pythonGH-104948) Use `str.lower()` rather than `ntpath.normcase()` to normalize case of Windows paths. This restores behaviour from Python 3.11. (cherry picked from commit ad0be36) Co-authored-by: Barney Gale <barney.gale@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
barneygale
added a commit
that referenced
this issue
May 26, 2023
… across platforms (GH-104948) (GH-104990) Use `str.lower()` rather than `ntpath.normcase()` to normalize case of Windows paths. This restores behaviour from Python 3.11. (cherry picked from commit ad0be36) Co-authored-by: Barney Gale <barney.gale@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
Thanks for spotting this @eryksun. It's fixed in:
3.12 beta 2 will contain the fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
topic-pathlib
type-bug
An unexpected behavior, bug, or error
In #31691 I switched
pathlib.PureWindowsPath
comparisons to useos.path.normcase()
rather thanstr.lower()
. This is probably a mistake, as @eryksun points out:Linked PRs
The text was updated successfully, but these errors were encountered: