Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pathlib.PurePath.with_name() rejects names with NTFS alternate data streams; accepts '.' #110488

Closed
Labels
3.12only security fixes3.13bugs and security fixestopic-pathlibtype-bugAn unexpected behavior, bug, or error
@barneygale

Description

@barneygale

Bug report

This shouldn't raise an exception:

>>>pathlib.PureWindowsPath('foo','a').with_name('a:b')ValueError:Invalidname'a:b'

(affects all versions of pathlib)

Thisshould raise an exception:

>>>pathlib.PurePath('foo','a').with_name('.')PurePosixPath('foo/.')

(affects 3.12 and up)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13bugs and security fixestopic-pathlibtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp