Repository navigation
Use ordinary fileno lookup in select - #9266
Conversation
Assisted-by: Codex:GPT-6
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 704c1fd65b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Assisted-by: Codex:GPT-6
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fe9ab0c52b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Found while running Twisted's SelectReactor, whose waker stores
filenoon the instance.Summary
filenothrough normal attribute lookup, including instance attributes and__getattr__.fileno(), matching CPython instead of accepting arbitrary__index__objects.AI assistance
Written with Codex (GPT-6), reviewed by a human before submission.
Summary by CodeRabbit
Bug Fixes
select.selecthandling of file-descriptor inputs.fileno()method are handled correctly.__index__are rejected.filenoattributes and non-integerfileno()results now raise a type error.Tests
filenoattributes, readable sockets, rejected inputs, and resource cleanup.