Skip to content

Radix Sort broken in Python 3 #130

@KuLi

Description

@KuLi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions