Repository navigation
Align native datetime conversion with Python 3.15 - #9133
Conversation
Prefer index conversion for timestamps, accept float-convertible values, validate ISO timezone components, and apply final local fold detection consistently. Implementation, source comparison, and bounded validation were assisted by OpenAI Codex. Assisted-by: OpenAI Codex:model version unavailable
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 1
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
__index__for native date/datetime timestamp conversion; otherwise accept float-convertible values while preserving NaN/range checks and microsecond rounding.Split from #8954. Only
crates/stdlib/src/_datetime.rschanges; noLib, test, dependency, or lockfile changes. Compared against CPython final commitd220409a13b77de7a6c30abe16ea90db01528edc.Validation
threading,stdlib,stdio,importlib,host_envwith default features disabled.__index__precedence, index errors without float fallback, and float-only conversion, for date and aware datetime. All use small epoch values.-D warnings. Test binaries were compiled but not executed.Validation above is bounded Linux coverage. Full datetime/workspace/C-API suites and Windows runtime behavior were not run locally. Hosted CI remains to be checked.
Implementation, source comparison, and validation were assisted by OpenAI Codex.
Assisted-by: OpenAI Codex:model version unavailable