Skip to content

Radix Sort broken in Python 3 #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
KuLi opened this issue Sep 29, 2017 · 0 comments
Closed

Radix Sort broken in Python 3 #130

KuLi opened this issue Sep 29, 2017 · 0 comments

Comments

@KuLi
Copy link
Contributor

KuLi commented Sep 29, 2017

In Python 3 radix sort is broken.

Traceback (most recent call last):
  File "radix_sort.py", line 30, in <module>
    radixsort(ar);
  File "radix_sort.py", line 14, in radixsort
    buckets[tmp % RADIX].append( i )
TypeError: list indices must be integers or slices, not float

I will fix it asap and submit a pull request.

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

No branches or pull requests

1 participant