René's URL Explorer Experiment


Title: naturaldelta: include OverflowError in the int() guard so float('inf') returns unchanged by HrachShah · Pull Request #342 · python-humanize/humanize · GitHub

Open Graph Title: naturaldelta: include OverflowError in the int() guard so float('inf') returns unchanged by HrachShah · Pull Request #342 · python-humanize/humanize

X Title: naturaldelta: include OverflowError in the int() guard so float('inf') returns unchanged by HrachShah · Pull Request #342 · python-humanize/humanize

Description: Python humanize functions. Contribute to python-humanize/humanize development by creating an account on GitHub.

Open Graph Description: Fixes #333. naturaldelta() documents that a non-finite float value (e.g. NaN, inf) is "returned unchanged." The previous code wrapped the int(value) probe in except (ValueError, TypeError...

X Description: Fixes #333. naturaldelta() documents that a non-finite float value (e.g. NaN, inf) is "returned unchanged." The previous code wrapped the int(value) probe in except (ValueError, T...

Opengraph URL: https://github.com/python-humanize/humanize/pull/342

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:ad18784b-65e9-ec03-9941-d22e3d47a269
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC634:2180CA:15EA3CB:1D28548:6A54399C
html-safe-nonce3272d54cde48eccaa65eab46faac20e09636c4ecceea3fd922fb56c0db808b80
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjM0OjIxODBDQToxNUVBM0NCOjFEMjg1NDg6NkE1NDM5OUMiLCJ2aXNpdG9yX2lkIjoiOTA1MjI5Nzk1OTMyMTEyMzIyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0353fea95662c2d8a2583e22f79602c423b1fd25ee0e0997a81721680e507d30
hovercard-subject-tagpull_request:3979669302
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-humanize/humanize/342/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/05d67256bb79c88aee18806bd763a6efa54385c57a2cb2e5bb1154111667c6b9/python-humanize/humanize/pull/342
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/05d67256bb79c88aee18806bd763a6efa54385c57a2cb2e5bb1154111667c6b9/python-humanize/humanize/pull/342
og:image:altFixes #333. naturaldelta() documents that a non-finite float value (e.g. NaN, inf) is "returned unchanged." The previous code wrapped the int(value) probe in except (ValueError, TypeError...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameHrachShah
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
go-importgithub.com/python-humanize/humanize git https://github.com/python-humanize/humanize.git
octolytics-dimension-user_id62149795
octolytics-dimension-user_loginpython-humanize
octolytics-dimension-repository_id466683324
octolytics-dimension-repository_nwopython-humanize/humanize
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id466683324
octolytics-dimension-repository_network_root_nwopython-humanize/humanize
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-humanize/humanize/pull/342#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F342
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-humanize%2Fhumanize%2Fpull%2F342
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-humanize%2Fhumanize
Reloadhttps://github.com/python-humanize/humanize/pull/342
Reloadhttps://github.com/python-humanize/humanize/pull/342
Reloadhttps://github.com/python-humanize/humanize/pull/342
Please reload this pagehttps://github.com/python-humanize/humanize/pull/342
python-humanize https://github.com/python-humanize
humanizehttps://github.com/python-humanize/humanize
Please reload this pagehttps://github.com/python-humanize/humanize/pull/342
Notifications https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Fork 115 https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Star 736 https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Code https://github.com/python-humanize/humanize
Issues 12 https://github.com/python-humanize/humanize/issues
Pull requests 12 https://github.com/python-humanize/humanize/pulls
Actions https://github.com/python-humanize/humanize/actions
Security and quality 0 https://github.com/python-humanize/humanize/security
Insights https://github.com/python-humanize/humanize/pulse
Code https://github.com/python-humanize/humanize
Issues https://github.com/python-humanize/humanize/issues
Pull requests https://github.com/python-humanize/humanize/pulls
Actions https://github.com/python-humanize/humanize/actions
Security and quality https://github.com/python-humanize/humanize/security
Insights https://github.com/python-humanize/humanize/pulse
HrachShahhttps://github.com/HrachShah
python-humanize:mainhttps://github.com/python-humanize/humanize/tree/main
HrachShah:fix/naturaldelta-integer-overflow-from-infhttps://github.com/HrachShah/humanize/tree/fix/naturaldelta-integer-overflow-from-inf
Conversationhttps://github.com/python-humanize/humanize/pull/342
Commits4 (4)https://github.com/python-humanize/humanize/pull/342/commits
Checkshttps://github.com/python-humanize/humanize/pull/342/checks
Files changedhttps://github.com/python-humanize/humanize/pull/342/files
naturaldelta: include OverflowError in the int() guard so float('inf') returns unchangedhttps://github.com/python-humanize/humanize/pull/342#top
HrachShahhttps://github.com/HrachShah
python-humanize:mainhttps://github.com/python-humanize/humanize/tree/main
HrachShah:fix/naturaldelta-integer-overflow-from-infhttps://github.com/HrachShah/humanize/tree/fix/naturaldelta-integer-overflow-from-inf
https://github.com/HrachShah
HrachShahhttps://github.com/HrachShah
Jul 2, 2026https://github.com/python-humanize/humanize/pull/342#issue-4796084964
#333https://github.com/python-humanize/humanize/issues/333
#333https://github.com/python-humanize/humanize/issues/333
Please reload this pagehttps://github.com/python-humanize/humanize/pull/342
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Jul 2, 2026https://github.com/python-humanize/humanize/pull/342#issuecomment-4867702052
#334https://github.com/python-humanize/humanize/pull/334
Please reload this pagehttps://github.com/python-humanize/humanize/pull/342
pre-commit-cihttps://github.com/apps/pre-commit-ci
July 7, 2026 01:50https://github.com/python-humanize/humanize/pull/342#commits-pushed-99f7fb4
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python-humanize/humanize/pull/342/commits/99f7fb4b94aa1fa68b6bdbff5acb2ad75519013b
99f7fb4https://github.com/python-humanize/humanize/pull/342/commits/99f7fb4b94aa1fa68b6bdbff5acb2ad75519013b
https://pre-commit.cihttps://pre-commit.ci
ordinal: use abs(value) for suffix so negative integers get the right…https://github.com/python-humanize/humanize/pull/342/commits/a1ec3a743aa330c03e7c4501f29be679afad0095
a1ec3a7https://github.com/python-humanize/humanize/pull/342/commits/a1ec3a743aa330c03e7c4501f29be679afad0095
naturaldelta: include OverflowError in the int() guard so float('inf'…https://github.com/python-humanize/humanize/pull/342/commits/db41b9fd3b062ed9c9901ce626439c6e467c13c5
db41b9fhttps://github.com/python-humanize/humanize/pull/342/commits/db41b9fd3b062ed9c9901ce626439c6e467c13c5
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python-humanize/humanize/pull/342/commits/53a7c55b8c01cf080712c01fd1d06711005623f7
53a7c55https://github.com/python-humanize/humanize/pull/342/commits/53a7c55b8c01cf080712c01fd1d06711005623f7
https://pre-commit.cihttps://pre-commit.ci
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Jul 9, 2026 https://github.com/python-humanize/humanize/pull/342#ref-pullrequest-4847645793
filesize: raise ValueError for non-finite bytes in naturalsize #349 https://github.com/python-humanize/humanize/pull/349
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Jul 9, 2026https://github.com/python-humanize/humanize/pull/342#issuecomment-4926973749
#349 (comment)https://github.com/python-humanize/humanize/pull/349#issuecomment-4926962834
Please reload this pagehttps://github.com/python-humanize/humanize/pull/342
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Jul 9, 2026https://github.com/python-humanize/humanize/pull/342#event-27773459358
https://github.co/hiddenchars
https://github.com/python-humanize/humanize/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-humanize%2Fhumanize%2Fpull%2F342
naturaldelta() raises OverflowError on float('inf') instead of returning it unchanged https://github.com/python-humanize/humanize/issues/333
Please reload this pagehttps://github.com/python-humanize/humanize/pull/342
https://github.com/HrachShah
https://github.com/hugovk
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.