René's URL Explorer Experiment


Title: gh-67795: Improve precision of non-float timestamp and timeout arguments by serhiy-storchaka · Pull Request #139273 · python/cpython · GitHub

Open Graph Title: gh-67795: Improve precision of non-float timestamp and timeout arguments by serhiy-storchaka · Pull Request #139273 · python/cpython

X Title: gh-67795: Improve precision of non-float timestamp and timeout arguments by serhiy-storchaka · Pull Request #139273 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Use the as_integer_ratio() or the numerator and denominator attributes to represent the number as an integer ratio and perform scaling and rounding exactly. This allows to avoid the precision loss ...

X Description: Use the as_integer_ratio() or the numerator and denominator attributes to represent the number as an integer ratio and perform scaling and rounding exactly. This allows to avoid the precision loss ...

Opengraph URL: https://github.com/python/cpython/pull/139273

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:d911f995-2de6-ce2b-c3b0-86c9e3f6e87e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEA90:9775E:24E5ABB:32F5F78:6A4F48B0
html-safe-noncee321d63b6fce82927c0642ed32320fe6afc87f8e2e952f1407945011d70009ca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTkwOjk3NzVFOjI0RTVBQkI6MzJGNUY3ODo2QTRGNDhCMCIsInZpc2l0b3JfaWQiOiI1Mzk3ODM2MjcxNDMwMDkyOTc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca5ec387f7fd4698bf156a3d74eab6d63bf3b988cdce077b66f9269b3a05a743b
hovercard-subject-tagpull_request:2854281549
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/139273/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/03a431cec8d605dc2452564fc9e12611a87edd562c46bf964614251836a172a4/python/cpython/pull/139273
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/03a431cec8d605dc2452564fc9e12611a87edd562c46bf964614251836a172a4/python/cpython/pull/139273
og:image:altUse the as_integer_ratio() or the numerator and denominator attributes to represent the number as an integer ratio and perform scaling and rounding exactly. This allows to avoid the precision loss ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/139273#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139273
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139273
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/139273
Reloadhttps://github.com/python/cpython/pull/139273
Reloadhttps://github.com/python/cpython/pull/139273
Please reload this pagehttps://github.com/python/cpython/pull/139273
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/139273
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:timestamp-timeout-as-integer-ratiohttps://github.com/serhiy-storchaka/cpython/tree/timestamp-timeout-as-integer-ratio
Conversationhttps://github.com/python/cpython/pull/139273
Commits5 (5)https://github.com/python/cpython/pull/139273/commits
Checkshttps://github.com/python/cpython/pull/139273/checks
Files changedhttps://github.com/python/cpython/pull/139273/files
gh-67795: Improve precision of non-float timestamp and timeout argumentshttps://github.com/python/cpython/pull/139273#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:timestamp-timeout-as-integer-ratiohttps://github.com/serhiy-storchaka/cpython/tree/timestamp-timeout-as-integer-ratio
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 23, 2025https://github.com/python/cpython/pull/139273#issue-3446356150
Please reload this pagehttps://github.com/python/cpython/pull/139273
Inconsistency in datetime.utcfromtimestamp(Decimal) #67795https://github.com/python/cpython/issues/67795
https://cpython-previews--139273.org.readthedocs.build/https://cpython-previews--139273.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/139273
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
vstinnerhttps://github.com/vstinner
September 23, 2025 19:01https://github.com/python/cpython/pull/139273#event-19873169267
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
AA-Turnerhttps://github.com/AA-Turner
abalkinhttps://github.com/abalkin
pgansslehttps://github.com/pganssle
code ownershttps://github.com/python/cpython/blob/1a2e00c97acfe9f797228b836e2345f630d07b8e/.github/CODEOWNERS#L110
September 23, 2025 19:01https://github.com/python/cpython/pull/139273#event-19873169512
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 23, 2025https://github.com/python/cpython/pull/139273#event-19873170299
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 23, 2025 https://github.com/python/cpython/pull/139273#ref-issue-1198932288
Inconsistency in datetime.utcfromtimestamp(Decimal) #67795 https://github.com/python/cpython/issues/67795
https://github.com/serhiy-storchaka
pythongh-67795https://github.com/python/cpython/issues/67795
: Improve precision of non-float timestamp and timeout …https://github.com/python/cpython/pull/139273/commits/90f8bf2916a872ecdb046642949db6f8fa30d35a
90f8bf2https://github.com/python/cpython/pull/139273/commits/90f8bf2916a872ecdb046642949db6f8fa30d35a
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
force-pushedhttps://github.com/python/cpython/compare/5672976c1413d10b6fa4cf00650d9e93839d4533..90f8bf2916a872ecdb046642949db6f8fa30d35a
5672976https://github.com/python/cpython/commit/5672976c1413d10b6fa4cf00650d9e93839d4533
90f8bf2https://github.com/python/cpython/commit/90f8bf2916a872ecdb046642949db6f8fa30d35a
Compare https://github.com/python/cpython/compare/5672976c1413d10b6fa4cf00650d9e93839d4533..90f8bf2916a872ecdb046642949db6f8fa30d35a
September 23, 2025 19:38https://github.com/python/cpython/pull/139273#event-19873754044
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 3, 2025 https://github.com/python/cpython/pull/139273#pullrequestreview-3298239282
View reviewed changes https://github.com/python/cpython/pull/139273/files/90f8bf2916a872ecdb046642949db6f8fa30d35a
Python/pytime.chttps://github.com/python/cpython/pull/139273/files/90f8bf2916a872ecdb046642949db6f8fa30d35a#diff-e8cf16f37d4d1aa0e011d0088545b7e225f969b2c29e2d5133bb8c3ff506670c
vstinnerhttps://github.com/vstinner
Oct 3, 2025https://github.com/python/cpython/pull/139273#discussion_r2401376086
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/139273
serhiy-storchakahttps://github.com/serhiy-storchaka
May 4, 2026https://github.com/python/cpython/pull/139273#discussion_r3183222007
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/139273
Python/pytime.chttps://github.com/python/cpython/pull/139273/files/90f8bf2916a872ecdb046642949db6f8fa30d35a#diff-e8cf16f37d4d1aa0e011d0088545b7e225f969b2c29e2d5133bb8c3ff506670c
Please reload this pagehttps://github.com/python/cpython/pull/139273
serhiy-storchakahttps://github.com/serhiy-storchaka
October 3, 2025 17:58https://github.com/python/cpython/pull/139273#commits-pushed-68433af
https://github.com/serhiy-storchaka
https://github.com/vstinner
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/139273/commits/68433af3a29b75d6ecef5c1cf1ce838fe6250f14
68433afhttps://github.com/python/cpython/pull/139273/commits/68433af3a29b75d6ecef5c1cf1ce838fe6250f14
https://github.com/serhiy-storchaka
Add more comments.https://github.com/python/cpython/pull/139273/commits/937be4ce3aedc1decc72051bdd03412da3dcf708
937be4chttps://github.com/python/cpython/pull/139273/commits/937be4ce3aedc1decc72051bdd03412da3dcf708
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 5, 2025 https://github.com/python/cpython/pull/139273#ref-issue-1199074635
Ceil division with math.ceildiv #90797 https://github.com/python/cpython/issues/90797
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Apr 29, 2026https://github.com/python/cpython/pull/139273#issuecomment-4346448175
Please reload this pagehttps://github.com/python/cpython/pull/139273
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Apr 29, 2026https://github.com/python/cpython/pull/139273#event-25003571821
serhiy-storchakahttps://github.com/serhiy-storchaka
May 4, 2026 20:10https://github.com/python/cpython/pull/139273#commits-pushed-6be1856
https://github.com/serhiy-storchaka
Merge branch 'main' into timestamp-timeout-as-integer-ratiohttps://github.com/python/cpython/pull/139273/commits/6be18568b8fbe708040cd107312ac77b7c40e25e
6be1856https://github.com/python/cpython/pull/139273/commits/6be18568b8fbe708040cd107312ac77b7c40e25e
https://github.com/serhiy-storchaka
Replace _PyTime_FromLong with PyLong_AsInt64.https://github.com/python/cpython/pull/139273/commits/a93adbda757bc8c0af852067216de29aadd97957
a93adbdhttps://github.com/python/cpython/pull/139273/commits/a93adbda757bc8c0af852067216de29aadd97957
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
StanFromIrelandhttps://github.com/StanFromIreland
code ownerhttps://github.com/python/cpython/blob/10f950c9bb0ff4583f361a42aaed562b330e1dba/.github/CODEOWNERS#L437
May 4, 2026 17:15https://github.com/python/cpython/pull/139273#event-25142763389
https://github.com/apps/read-the-docs-community
read-the-docs-communityhttps://github.com/apps/read-the-docs-community
May 4, 2026https://github.com/python/cpython/pull/139273#issuecomment-4373015343
cpython-previewshttps://app.readthedocs.org/projects/cpython-previews/
#32530245https://app.readthedocs.org/projects/cpython-previews/builds/32530245/
a93adbdhttps://github.com/python/cpython/commit/a93adbda757bc8c0af852067216de29aadd97957
mainhttps://cpython-previews.readthedocs.io/en/main/
10f950chttps://github.com/python/cpython/commit/10f950c9bb0ff4583f361a42aaed562b330e1dba
  🔍 Preview build   https://cpython-previews--139273.org.readthedocs.build/en/139273/
whatsnew/3.15.htmlhttps://cpython-previews--139273.org.readthedocs.build/en/139273/whatsnew/3.15.html
whatsnew/changelog.htmlhttps://cpython-previews--139273.org.readthedocs.build/en/139273/whatsnew/changelog.html
Please reload this pagehttps://github.com/python/cpython/pull/139273
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
May 16, 2026https://github.com/python/cpython/pull/139273#event-25603995166
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139273
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/139273/files/90f8bf2916a872ecdb046642949db6f8fa30d35a
https://github.com/pganssle
pganssle https://github.com/pganssle
https://github.com/abalkin
abalkin https://github.com/abalkin
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/139273
https://github.com/serhiy-storchaka
https://github.com/vstinner
https://github.com/nazeerali4325-commits
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.