← 返回首页
GH-119113: Raise `TypeError` from `pathlib.PurePath.with_suffix(None)` by barneygale · Pull Request #119124 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

GH-119113: Raise TypeError from pathlib.PurePath.with_suffix(None)#119124

Merged
barneygale merged 1 commit into
python:mainfrom
barneygale:gh-119113
May 19, 2024
Merged

GH-119113: Raise TypeError from pathlib.PurePath.with_suffix(None)#119124
barneygale merged 1 commit into
python:mainfrom
barneygale:gh-119113

Conversation

barneygale commented May 17, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Restore behaviour from 3.12 when path.with_suffix(None) is called.

…one)` Restore behaviour from 3.12 when `path.with_suffix(None)` is called.
Comment thread Lib/pathlib/_abc.py Show resolved Hide resolved
barneygale merged commit 3c28510 into python:main May 19, 2024

Copy link
Copy Markdown

Thanks @barneygale for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 19, 2024
…(None)` (pythonGH-119124) Restore behaviour from 3.12 when `path.with_suffix(None)` is called. (cherry picked from commit 3c28510) Co-authored-by: Barney Gale <barney.gale@gmail.com>

bedevere-app Bot commented May 19, 2024

Copy link
Copy Markdown

GH-119183 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label May 19, 2024
barneygale added a commit that referenced this pull request May 19, 2024
…x(None)` (GH-119124) (#119183) Restore behaviour from 3.12 when `path.with_suffix(None)` is called. (cherry picked from commit 3c28510) Co-authored-by: Barney Gale <barney.gale@gmail.com>
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
…(None)` (python#119124) Restore behaviour from 3.12 when `path.with_suffix(None)` is called.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Footer

© 2026 GitHub, Inc.