Repository navigation
Return the correct bytes reconstruction arguments - #9326
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
|
Summary
bytesfrombytes.__getnewargs__, instead of a tuple of individual byte values.Performance
Windows 11 x64
Debian 13 amd64
AI assistance
Written with Codex (GPT-6), reviewed by a human before submission.
Summary by CodeRabbit
bytes.__getnewargs__()now returns a one-item tuple containing the bytes object, instead of a tuple of its integer values. This preserves the bytes payload when the method’s result is used to reconstruct a bytes object, including for bytes subclasses.