René's URL Explorer Experiment


Title: Preserve Windows time conversion error classes by youknowdot · Pull Request #9022 · RustPython/RustPython · GitHub

Open Graph Title: Preserve Windows time conversion error classes by youknowdot · Pull Request #9022 · RustPython/RustPython

X Title: Preserve Windows time conversion error classes by youknowdot · Pull Request #9022 · RustPython/RustPython

Description: Scope Preserve Python 3.14's exception classes for Windows time.gmtime(), time.localtime(), and time.ctime() conversions. This draft deliberately starts with a regression-only commit. Its Windows RustPython snippet is expected to fail on the current baseline, which converts UCRT failures to OverflowError. The existing hosted Windows workflow will establish the native baseline before the implementation is added to this same draft branch. Implementation and verification will remain visible in the commit history and checks. Expected behavior A timestamp representable by time_t but rejected by the Windows C runtime raises OSError with errno.EINVAL, including -1 and 2**40. float(2**63) remains an OverflowError before the OS conversion. The fix must use an exclusive upper bound because signed time_t's maximum rounds up as a float. Existing canonical assertions and skip logic stay unchanged. Python 3.15's negative-time FILETIME fallback and changes to the time64 ABI are outside this draft's scope. Evidence at draft creation CPython 3.14 pytime.c propagates localtime_s/gmtime_s failures with PyExc_OSError. Microsoft documents gmtime errors and range and localtime EINVAL conditions. The updated existing time snippet passes through the repository's pytest runner on CPython 3.14.7 and the current Linux RustPython baseline, including the float-overflow control. The Windows-specific assertions still require their own hosted result. Normal repository commit hooks pass. This is a narrow Python 3.14 compatibility extraction from #8954. AI assistance: OpenAI Codex assisted with source comparison, regression design, implementation preparation, and automated verification under the user's direction. No manual Windows validation is claimed.

Open Graph Description: Scope Preserve Python 3.14's exception classes for Windows time.gmtime(), time.localtime(), and time.ctime() conversions. This draft deliberately starts with a regression-only commit. Its Windo...

X Description: Scope Preserve Python 3.14's exception classes for Windows time.gmtime(), time.localtime(), and time.ctime() conversions. This draft deliberately starts with a regression-only commit. Its W...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9022

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c4769ed9-fd8f-aefc-1354-29648ae14e8d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8F58:1CCECA:F6E3D1:1498F0C:6B01E6B2
html-safe-noncec923b6450ff2e8fe469328607a0269a000b0556266711d57549f4fee0dd73735
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjU4OjFDQ0VDQTpGNkUzRDE6MTQ5OEYwQzo2QjAxRTZCMiIsInZpc2l0b3JfaWQiOiIxODM0Mzc5MTk4MTgyMDU3NjUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac965171061a12db91953ce7afe32942084fa97395c8380bac2029b686d6a99886
hovercard-subject-tagpull_request:4800585026
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9022/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altScope Preserve Python 3.14's exception classes for Windows time.gmtime(), time.localtime(), and time.ctime() conversions. This draft deliberately starts with a regression-only commit. Its Windo...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9022/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9022%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9022%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9022/files
Reloadhttps://github.com/RustPython/RustPython/pull/9022/files
Reloadhttps://github.com/RustPython/RustPython/pull/9022/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:fix-windows-time-errorshttps://github.com/youknowdot/RustPython/tree/fix-windows-time-errors
Conversation 5 https://github.com/RustPython/RustPython/pull/9022
Commits 4 https://github.com/RustPython/RustPython/pull/9022/commits
Checks 29 https://github.com/RustPython/RustPython/pull/9022/checks
Files changed https://github.com/RustPython/RustPython/pull/9022/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9022/files
Preserve Windows time conversion error classes https://github.com/RustPython/RustPython/pull/9022/files#top
Show all changes 4 commits https://github.com/RustPython/RustPython/pull/9022/files
7c8d875 Cover Windows time conversion error classes youknowdot Oct 9, 2026 https://github.com/RustPython/RustPython/pull/9022/commits/7c8d875253ee271ba0d8eecbe88ccf1433d45337
e4b65a9 Record native Windows time conversion outcomes youknowdot Oct 9, 2026 https://github.com/RustPython/RustPython/pull/9022/commits/e4b65a90a987dcd2f4edfd544c181aa504d614d6
1fce7d4 Use the observed UCRT rejection boundary in time regression youknowdot Oct 9, 2026 https://github.com/RustPython/RustPython/pull/9022/commits/1fce7d4f88fd71ea43cd3ef07217dd12496d11d0
dfd1eed Preserve Windows CRT time conversion errors youknowdot Oct 9, 2026 https://github.com/RustPython/RustPython/pull/9022/commits/dfd1eedc70643f8c2ced84f3899f677e229db8ad
Clear filters https://github.com/RustPython/RustPython/pull/9022/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9022/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9022/files
time.rs https://github.com/RustPython/RustPython/pull/9022/files#diff-bd342e29a0e1c4ecbcaacdca9224f2414102b7ca0e287855ab3c4b00e04bd5eb
_datetime.rs https://github.com/RustPython/RustPython/pull/9022/files#diff-4865bbb0fcf7b487d15d3faf72a601772d080bf4ad864b1f4a7ad62be464a8a9
time.rs https://github.com/RustPython/RustPython/pull/9022/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
stdlib_datetime.py https://github.com/RustPython/RustPython/pull/9022/files#diff-c682c5ce94293e5d6632bda89ae696ff23f948c0603568887abb10b020b9ec6e
stdlib_time.py https://github.com/RustPython/RustPython/pull/9022/files#diff-31d5f7d2cf83df88e8b6c92f81f21d89c42f091432eea3a4d684a936997f4a0d
crates/host_env/src/time.rshttps://github.com/RustPython/RustPython/pull/9022/files#diff-bd342e29a0e1c4ecbcaacdca9224f2414102b7ca0e287855ab3c4b00e04bd5eb
View file https://github.com/youknowdot/RustPython/blob/dfd1eedc70643f8c2ced84f3899f677e229db8ad/crates/host_env/src/time.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9022/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9022/files#diff-bd342e29a0e1c4ecbcaacdca9224f2414102b7ca0e287855ab3c4b00e04bd5eb
https://github.com/RustPython/RustPython/pull/9022/files#diff-bd342e29a0e1c4ecbcaacdca9224f2414102b7ca0e287855ab3c4b00e04bd5eb
crates/stdlib/src/_datetime.rshttps://github.com/RustPython/RustPython/pull/9022/files#diff-4865bbb0fcf7b487d15d3faf72a601772d080bf4ad864b1f4a7ad62be464a8a9
View file https://github.com/youknowdot/RustPython/blob/dfd1eedc70643f8c2ced84f3899f677e229db8ad/crates/stdlib/src/_datetime.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9022/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9022/files#diff-4865bbb0fcf7b487d15d3faf72a601772d080bf4ad864b1f4a7ad62be464a8a9
https://github.com/RustPython/RustPython/pull/9022/files#diff-4865bbb0fcf7b487d15d3faf72a601772d080bf4ad864b1f4a7ad62be464a8a9
https://github.com/RustPython/RustPython/pull/9022/files#diff-4865bbb0fcf7b487d15d3faf72a601772d080bf4ad864b1f4a7ad62be464a8a9
https://github.com/RustPython/RustPython/pull/9022/files#diff-4865bbb0fcf7b487d15d3faf72a601772d080bf4ad864b1f4a7ad62be464a8a9
crates/vm/src/stdlib/time.rshttps://github.com/RustPython/RustPython/pull/9022/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
View file https://github.com/youknowdot/RustPython/blob/dfd1eedc70643f8c2ced84f3899f677e229db8ad/crates/vm/src/stdlib/time.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9022/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9022/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
https://github.com/RustPython/RustPython/pull/9022/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
https://github.com/RustPython/RustPython/pull/9022/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
https://github.com/RustPython/RustPython/pull/9022/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
https://github.com/RustPython/RustPython/pull/9022/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
https://github.com/RustPython/RustPython/pull/9022/files#diff-1b1beeed0db11c1262967da108e5e037aed82af263bb55882f24b1556bf8f9a5
extra_tests/snippets/stdlib_datetime.pyhttps://github.com/RustPython/RustPython/pull/9022/files#diff-c682c5ce94293e5d6632bda89ae696ff23f948c0603568887abb10b020b9ec6e
View file https://github.com/youknowdot/RustPython/blob/dfd1eedc70643f8c2ced84f3899f677e229db8ad/extra_tests/snippets/stdlib_datetime.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9022/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9022/files#diff-c682c5ce94293e5d6632bda89ae696ff23f948c0603568887abb10b020b9ec6e
https://github.com/RustPython/RustPython/pull/9022/files#diff-c682c5ce94293e5d6632bda89ae696ff23f948c0603568887abb10b020b9ec6e
extra_tests/snippets/stdlib_time.pyhttps://github.com/RustPython/RustPython/pull/9022/files#diff-31d5f7d2cf83df88e8b6c92f81f21d89c42f091432eea3a4d684a936997f4a0d
View file https://github.com/youknowdot/RustPython/blob/dfd1eedc70643f8c2ced84f3899f677e229db8ad/extra_tests/snippets/stdlib_time.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9022/{{ revealButtonHref }}
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 9, 2026https://github.com/RustPython/RustPython/pull/9022/files#r4231948090
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/a08bbb8a949f7033433a88444eeae385ff6a5e599d92f878fb05fa85707b7816/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50312d6f72616e67653f7374796c653d666c6174
AGENTS.md:L273-L279https://github.com/RustPython/RustPython/blob/dfd1eedc70643f8c2ced84f3899f677e229db8ad/AGENTS.md#L273-L279
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9022/files
https://github.com/RustPython/RustPython/pull/9022/files#diff-31d5f7d2cf83df88e8b6c92f81f21d89c42f091432eea3a4d684a936997f4a0d
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9022/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.