René's URL Explorer Experiment


Title: bucket_sort has no dedicated error handling when the number of buckets in inputted as a float instead of an integer. · Issue #14970 · TheAlgorithms/Python · GitHub

Open Graph Title: bucket_sort has no dedicated error handling when the number of buckets in inputted as a float instead of an integer. · Issue #14970 · TheAlgorithms/Python

X Title: bucket_sort has no dedicated error handling when the number of buckets in inputted as a float instead of an integer. · Issue #14970 · TheAlgorithms/Python

Description: Feature description Issue: The bucket_sort function accepts an integer passed as an argument def bucket_sort(my_list: list, bucket_count: int = 10) When passing a float it causes an unhandled TypeError Test used: >>> data = [12, 7 , 22, ...

Open Graph Description: Feature description Issue: The bucket_sort function accepts an integer passed as an argument def bucket_sort(my_list: list, bucket_count: int = 10) When passing a float it causes an unhandled TypeE...

X Description: Feature description Issue: The bucket_sort function accepts an integer passed as an argument def bucket_sort(my_list: list, bucket_count: int = 10) When passing a float it causes an unhandled TypeE...

Opengraph URL: https://github.com/TheAlgorithms/Python/issues/14970

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bucket_sort has no dedicated error handling when the number of buckets in inputted as a float instead of an integer.","articleBody":"### Feature description\n\nIssue:\n\nThe bucket_sort function accepts an integer passed as an argument\n\ndef bucket_sort(my_list: list, bucket_count: int = 10)\n\nWhen passing a float it causes an unhandled TypeError\n\nTest used:\n\n    >>> data = [12, 7 , 22, 11, 4]\n    >>> bucket_sort(data, 2.5) == sorted(data)\n    True\n\nTypeError: 'float' object cannot be interpreted as an integer\n\nProposed solution:\n\nEither return an empty list for consistency to match when a bucket count of less than 0 is used\n\nif len(my_list) == 0 or bucket_count \u003c= 0 or not isinstance(bucket_count, int):\n        return [ ]\n\nOr raise a clearer TypeError\n\nif not isinstance(bucket_count, int):\n        raise TypeError(\"bucket_count must be an integer\")\n\nI would like to implement either solution.\n","author":{"url":"https://github.com/ThayerMarvin","@type":"Person","name":"ThayerMarvin"},"datePublished":"2026-07-24T20:33:22Z","url":"https://github.com/TheAlgorithms/Python/issues/14970"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:eafe7370-01c5-bdee-c991-6e3bf0db520c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBD88:2A59EB:48A934:609273:6AFBC06D
html-safe-nonce77ed7c1e20c9bdc91fbca5d4bf949238f5001fb23f19768143f59cd90ffa0ba5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDg4OjJBNTlFQjo0OEE5MzQ6NjA5MjczOjZBRkJDMDZEIiwidmlzaXRvcl9pZCI6IjE4MDExOTM1MDk1NzI5MzY3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9361e040ae0cf915b907cfdb254c13c7817df49f8fe8f4a977af71b3ae4771ac
hovercard-subject-tagissue:4971819680
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/TheAlgorithms/Python/14970/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2998d54c7618975081bf021198a72d48d09ffa4e4f569c02d1998555e9ee2726/TheAlgorithms/Python/issues/14970
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2998d54c7618975081bf021198a72d48d09ffa4e4f569c02d1998555e9ee2726/TheAlgorithms/Python/issues/14970
og:image:altFeature description Issue: The bucket_sort function accepts an integer passed as an argument def bucket_sort(my_list: list, bucket_count: int = 10) When passing a float it causes an unhandled TypeE...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameThayerMarvin
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
turbo-cache-controlno-preview
go-importgithub.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git
octolytics-dimension-user_id20487725
octolytics-dimension-user_loginTheAlgorithms
octolytics-dimension-repository_id63476337
octolytics-dimension-repository_nwoTheAlgorithms/Python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id63476337
octolytics-dimension-repository_network_root_nwoTheAlgorithms/Python
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
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/TheAlgorithms/Python/issues/14970#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fissues%2F14970
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%2FTheAlgorithms%2FPython%2Fissues%2F14970
Sign uphttps://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=TheAlgorithms%2FPython
Reloadhttps://github.com/TheAlgorithms/Python/issues/14970
Reloadhttps://github.com/TheAlgorithms/Python/issues/14970
Reloadhttps://github.com/TheAlgorithms/Python/issues/14970
TheAlgorithmshttps://github.com/TheAlgorithms
Pythonhttps://github.com/TheAlgorithms/Python
Codehttps://github.com/TheAlgorithms/Python
Issues14 (14)https://github.com/TheAlgorithms/Python/issues
Pull requests104 (104)https://github.com/TheAlgorithms/Python/pulls
Discussionshttps://github.com/TheAlgorithms/Python/discussions
Actionshttps://github.com/TheAlgorithms/Python/actions
Projectshttps://github.com/TheAlgorithms/Python/projects
Wikihttps://github.com/TheAlgorithms/Python/wiki
Security and qualityhttps://github.com/TheAlgorithms/Python/security
Insightshttps://github.com/TheAlgorithms/Python/pulse
https://github.com/TheAlgorithms/Python
New issuehttps://github.com/login?return_to=https://github.com/TheAlgorithms/Python/issues/14970
New issuehttps://github.com/login?return_to=https://github.com/TheAlgorithms/Python/issues/14970
bucket_sort has no dedicated error handling when the number of buckets in inputted as a float instead of an integer.https://github.com/TheAlgorithms/Python/issues/14970#top
#15228https://github.com/TheAlgorithms/Python/pull/15228
enhancementThis PR modified some existing fileshttps://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/ThayerMarvin
ThayerMarvinhttps://github.com/ThayerMarvin
on Jul 24, 2026https://github.com/TheAlgorithms/Python/issues/14970#issue-4971819680
ThayerMarvinhttps://github.com/ThayerMarvin
enhancementThis PR modified some existing fileshttps://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Jul 24, 2026https://github.com/TheAlgorithms/Python/issues/14970#event-28455359365
TheRodzzhttps://github.com/TheRodzz
on Jul 31, 2026https://github.com/TheAlgorithms/Python/issues/14970#event-28788565308
fix(sorts): raise TypeError when bucket_count is not an integer in bu…https://github.com/TheRodzz/Python/commit/492c68cfea3caaef7c86bab54c78ba5b27400ede
492c68chttps://github.com/TheRodzz/Python/commit/492c68cfea3caaef7c86bab54c78ba5b27400ede
fix(sorts): raise TypeError when bucket_count is not an integer in bu…https://github.com/TheRodzz/Python/commit/6a111bcb3f8f1e57d9b9f8b5134e42b5d61e6f91
6a111bchttps://github.com/TheRodzz/Python/commit/6a111bcb3f8f1e57d9b9f8b5134e42b5d61e6f91
cclausshttps://github.com/cclauss
completedhttps://github.com/TheAlgorithms/Python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#15228https://github.com/TheAlgorithms/Python/pull/15228
on Sep 8, 2026https://github.com/TheAlgorithms/Python/issues/14970#event-30758951692
Sign up for freehttps://github.com/signup?return_to=https://github.com/TheAlgorithms/Python/issues/14970
Sign in to commenthttps://github.com/login?return_to=https://github.com/TheAlgorithms/Python/issues/14970
enhancementThis PR modified some existing fileshttps://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22enhancement%22
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.