FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: raise TypeError for non-integer bucket_count in bucket_sort by deepshekhardas · Pull Request #15041 · TheAlgorithms/Python · GitHub

fix: raise TypeError for non-integer bucket_count in bucket_sort - #15041

Open
deepshekhardas wants to merge 1 commit into
TheAlgorithms:masterfrom
deepshekhardas:fix-14970-bucket-sort-float
Open

fix: raise TypeError for non-integer bucket_count in bucket_sort#15041
deepshekhardas wants to merge 1 commit into
TheAlgorithms:masterfrom
deepshekhardas:fix-14970-bucket-sort-float

Conversation

Copy link
Copy Markdown

Describe your change

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Add, change, or clarify documentation?

What does this implement/fix?

Passing a float �ucket_count caused an unhandled TypeError: 'float' object cannot be interpreted as an integer. Raise a clear TypeError instead.

Additional comments?

None.

Fixes #14970

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bucket_sort has no dedicated error handling when the number of buckets in inputted as a float instead of an integer.

1 participant


Back | FazBrowse Home | New Git URL