PADS, my collection of Python algorithm implementations, has finally been updated to work under both Python 2 and Python 3. Most, but not all, of its modules have been tested under both version of Python.

Most of the code was already pretty close to working. The most frequent changes I needed to do: use next(iterator) instead of iterator.next(); avoid xrange, iteritems, and itervalues; use list(dict.items) for loops that change the dictionary; wrap arguments to print in parens.





Comments:

None:
2014-05-26T14:45:13Z
Dead link (lack of http prefix).
11011110:
2014-05-26T17:02:09Z
Thanks, fixed. I blame Chrome and its DWIM-like ability to handle missing http: and still work.