Skip to content

Conversation

@kovan
Copy link

@kovan kovan commented Feb 3, 2026

Summary

  • Adds versionchanged:: 3.14 note to PurePath.stem attribute documentation
  • Explains that stem behavior changed because a single dot is now considered a valid suffix
  • Example: PurePosixPath('my/file.').stem previously returned 'file.', now returns 'file'

The suffix, suffixes, and with_suffix docs already have this note, but stem was missing it.

Test plan

  • make check passed in Doc/ directory
  • Documentation builds correctly

🤖 Generated with Claude Code


📚 Documentation preview 📚: https://cpython-previews--144450.org.readthedocs.build/

@bedevere-app
Copy link

bedevere-app bot commented Feb 4, 2026

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@python-cla-bot
Copy link

python-cla-bot bot commented Feb 4, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

…3.14

Add versionchanged note explaining that the behavior of stem changed
in Python 3.14 because a single dot is now considered a valid suffix.
Previously 'file.'.stem returned 'file.', now it returns 'file'.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@kovan kovan force-pushed the gh-140490-pathlib-stem-versionchanged branch from aebc43c to 987c720 Compare February 4, 2026 00:09
@kovan
Copy link
Author

kovan commented Feb 4, 2026

I have made the requested changes; please review again

@bedevere-app
Copy link

bedevere-app bot commented Feb 4, 2026

Thanks for making the requested changes!

@picnixz: please review the changes made to this pull request.

@bedevere-app bedevere-app bot requested a review from picnixz February 4, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants