-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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.PurePath.with_name() rejects names with NTFS alternate data streams; accepts '.' #110488
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
topic-pathlib
type-bug
An unexpected behavior, bug, or error
Comments
Removing the |
barneygale
added a commit
to barneygale/cpython
that referenced
this issue
Oct 10, 2023
Ensure that `PurePath('foo/a').with_name('.')` raises `ValueError` Ensure that `PureWindowsPath('foo/a').with_name('a:b')` does not raise `ValueError`.
barneygale
added a commit
that referenced
this issue
Oct 11, 2023
…10651) Ensure that `PurePath('foo/a').with_name('.')` raises `ValueError` Ensure that `PureWindowsPath('foo/a').with_name('a:b')` does not raise `ValueError`.
barneygale
added a commit
to barneygale/cpython
that referenced
this issue
Oct 11, 2023
…)` (python#110651) Ensure that `PurePath('foo/a').with_name('.')` raises `ValueError` Ensure that `PureWindowsPath('foo/a').with_name('a:b')` does not raise `ValueError`. (cherry picked from commit b5f7777)
barneygale
added a commit
to barneygale/cpython
that referenced
this issue
Oct 11, 2023
…h_name()` (pythonGH-110651) Ensure that `PurePath('foo/a').with_name('.')` raises `ValueError` Ensure that `PureWindowsPath('foo/a').with_name('a:b')` does not raise `ValueError`.. (cherry picked from commit b5f7777) Co-authored-by: Barney Gale <barney.gale@gmail.com>
barneygale
added a commit
to barneygale/cpython
that referenced
this issue
Oct 11, 2023
…h_name()` (pythonGH-110651) Ensure that `PurePath('foo/a').with_name('.')` raises `ValueError` Ensure that `PureWindowsPath('foo/a').with_name('a:b')` does not raise `ValueError`.. (cherry picked from commit b5f7777) Co-authored-by: Barney Gale <barney.gale@gmail.com>
barneygale
added a commit
that referenced
this issue
Oct 11, 2023
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
…)` (python#110651) Ensure that `PurePath('foo/a').with_name('.')` raises `ValueError` Ensure that `PureWindowsPath('foo/a').with_name('a:b')` does not raise `ValueError`.
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
Bug report
This shouldn't raise an exception:
(affects all versions of pathlib)
This should raise an exception:
(affects 3.12 and up)
Linked PRs
pathlib.PurePath.with_name()
#110651pathlib.PurePath.with_name()
(GH-110651) #110678The text was updated successfully, but these errors were encountered: