René's URL Explorer Experiment


Title: intword fails to parse numbers >= 1 Googol · Issue #134 · python-humanize/humanize · GitHub

Open Graph Title: intword fails to parse numbers >= 1 Googol · Issue #134 · python-humanize/humanize

X Title: intword fails to parse numbers >= 1 Googol · Issue #134 · python-humanize/humanize

Description: What did you do? I tried to use humanize to convert 10_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000 (1 Googol) to the text output “1 googol” by callin...

Open Graph Description: What did you do? I tried to use humanize to convert 10_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000 (1 Googol)...

X Description: What did you do? I tried to use humanize to convert 10_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000 (1 Googol)...

Opengraph URL: https://github.com/python-humanize/humanize/issues/134

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"intword fails to parse numbers \u003e= 1 Googol","articleBody":"### What did you do?\r\nI tried to use humanize to convert `10_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000` (1 Googol) to the text output “1 googol” by calling `humanize.intword()` with the number.\r\n\r\n### What did you expect to happen?\r\nI expected the text output to be “1 googol” as the [documentation for intword](https://humanize.readthedocs.io/en/latest/number/#humanize.number.intword) claims the library can handle numbers of this size.\r\n\r\n### What actually happened?\r\nThe output was just the number as a string, without any word at all: `'10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'`\r\n\r\nThis is also the case for numbers larger than 1 Googol.\r\n### What versions are you using?\r\n\r\n* OS: Windows 11 Pro 22H2 22621.1992\r\n* Python: Python 3.11.4 (also tried 3.10.11, 3.9.13, 3.8.10, and 3.7.9)\r\n* Humanize: 4.7.0 (4.6.0 for Python 3.7.9)\r\n\r\nPlease include **code** that reproduces the issue.\r\n\r\nThe [best reproductions](https://stackoverflow.com/help/minimal-reproducible-example) are [self-contained scripts](https://ericlippert.com/2014/03/05/how-to-debug-small-programs/) with minimal dependencies.\r\n\r\n```python\r\n\u003e\u003e\u003e import humanize\r\n# 1 Googol:\r\n\u003e\u003e\u003e GOOGOL = 10_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000\r\n\u003e\u003e\u003e humanize.intword(GOOGOL)\r\n'10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'\r\n\r\n# 1 Googol minus 1:\r\n\u003e\u003e\u003e humanize.intword(GOOGOL - 1)\r\n'10000000000000001323945434466030186557813051577054744406252071157760.0 decillion'\r\n\r\n# 1000 Googol:\r\n\u003e\u003e\u003e humanize.intword(GOOGOL * 1000)\r\n'10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'\r\n```\r\n\r\nThe fact that it doesn't seem to work in any Python versions going all the way back to 3.8 in humanize v4.7.0 (and Python 3.7 with v4.6.0) seems odd to me. It leads me to believe that either I am misunderstanding the documentation, I am using the library wrongly, or something is wrong with how humanize handles a Googol.\r\nIf humanize is not supposed to parse a googol to the string “1 googol”, the docs should be updated to reflect that. Currently, they state:\r\n\u003e Supports up to decillion (33 digits) and googol (100 digits).\r\nWhich I understood meaning “Can parse and display a googol”.\r\n\r\nMy apologies if the problem turns out to be me misunderstanding/-using.","author":{"url":"https://github.com/MajorTanya","@type":"Person","name":"MajorTanya"},"datePublished":"2023-07-26T03:10:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/134/humanize/issues/134"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bd60b74a-0790-3327-2dbe-b306a9852f09
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC9B6:1702DA:90ADF8:D1AC60:6A561BF5
html-safe-nonceeba528a8a220fe872e1d4e013572d0149fb39ee3d9f6e4cac7d11359db9fb9b2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUI2OjE3MDJEQTo5MEFERjg6RDFBQzYwOjZBNTYxQkY1IiwidmlzaXRvcl9pZCI6IjU0NzY4OTE0NDA5MzU0NzYyMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2b72c1620c4e87f3d57c9f16ae5e261b32a0b271c6186877f772db11a84baf0d
hovercard-subject-tagissue:1821498996
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-humanize/humanize/134/issue_layout
twitter:imagehttps://opengraph.githubassets.com/622491e942650da7984ee4313974d6f3ea759249fe096bebe0a91db8547cdc99/python-humanize/humanize/issues/134
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/622491e942650da7984ee4313974d6f3ea759249fe096bebe0a91db8547cdc99/python-humanize/humanize/issues/134
og:image:altWhat did you do? I tried to use humanize to convert 10_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000_000 (1 Googol)...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMajorTanya
hostnamegithub.com
expected-hostnamegithub.com
Nonef4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a
turbo-cache-controlno-preview
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
releaseb76b9cc70d30da50674184c9c66c56423fd0b93c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-humanize/humanize/issues/134#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fissues%2F134
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%2Fissues%2F134
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-humanize%2Fhumanize
Reloadhttps://github.com/python-humanize/humanize/issues/134
Reloadhttps://github.com/python-humanize/humanize/issues/134
Reloadhttps://github.com/python-humanize/humanize/issues/134
Please reload this pagehttps://github.com/python-humanize/humanize/issues/134
python-humanize https://github.com/python-humanize
humanizehttps://github.com/python-humanize/humanize
Please reload this pagehttps://github.com/python-humanize/humanize/issues/134
Notifications https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Fork 116 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 13 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
#304https://github.com/python-humanize/humanize/pull/304
intword fails to parse numbers >= 1 Googolhttps://github.com/python-humanize/humanize/issues/134#top
#304https://github.com/python-humanize/humanize/pull/304
https://github.com/MajorTanya
MajorTanyahttps://github.com/MajorTanya
on Jul 26, 2023https://github.com/python-humanize/humanize/issues/134#issue-1821498996
documentation for intwordhttps://humanize.readthedocs.io/en/latest/number/#humanize.number.intword
best reproductionshttps://stackoverflow.com/help/minimal-reproducible-example
self-contained scriptshttps://ericlippert.com/2014/03/05/how-to-debug-small-programs/
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.