Skip to content

gh-148603: Update open() default encoding docs#148614

Open
dagangtj wants to merge 1 commit intopython:mainfrom
dagangtj:fix/issue-148603
Open

gh-148603: Update open() default encoding docs#148614
dagangtj wants to merge 1 commit intopython:mainfrom
dagangtj:fix/issue-148603

Conversation

@dagangtj
Copy link
Copy Markdown

@dagangtj dagangtj commented Apr 15, 2026

Summary\n\nUpdates the documentation for the built-in open() function to reflect that Python 3.15 uses UTF-8 as the default text encoding (PEP 686), rather than locale-dependent encoding.\n\n## Changes\n\n- Updated open() documentation in Doc/library/functions.rst\n\n## Testing\n\n- Verified the documentation source builds correctly\n\nFixes #148603


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

@python-cla-bot
Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir skip news labels Apr 15, 2026
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Apr 15, 2026
@StanFromIreland StanFromIreland changed the title doc: Update open() default encoding docs for Python 3.15 gh-148603: Update open() default encoding docs Apr 15, 2026
Copy link
Copy Markdown
Member

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert unrelated changes.

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 15, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting changes docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants