Skip to content

gh-95498: Document open() behavior with file descriptors - #159324

Draft
raihanshiras wants to merge 1 commit into
python:mainfrom
raihanshiras:gh-95498-open-fd-docs
Draft

raihanshiras wants to merge 1 commit into
python:mainfrom
raihanshiras:gh-95498-open-fd-docs

Conversation

@raihanshiras

Copy link
Copy Markdown

GH-95498

Document the behavior of open() when passed an existing file descriptor.

When an existing file descriptor is passed to open(), its underlying access mode is not changed. The caller is responsible for ensuring that the file descriptor is compatible with the requested mode.

Tests

  • git diff --check passed.
  • The local documentation build could not be completed because of an issue with the local documentation tooling environment.

@python-cla-bot

Copy link
Copy Markdown

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

CLA not signed

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35121357 | 📁 Comparing 1d02e27 against main (82b612d)

  🔍 Preview build  

1 file changed
± builtins/functions.html

@picnixz

picnixz commented Oct 14, 2026

Copy link
Copy Markdown
Member

Unless the CLA is signed, we won't review it.

@picnixz
picnixz marked this pull request as draft October 14, 2026 21:45
@picnixz picnixz added the pending The issue will be closed if no feedback is provided label Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir pending The issue will be closed if no feedback is provided skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants