I ran a series of tests and google searches to convert a repository to Python 3 from Python 2.
2to3 was a good starting point but the imports needed a lot of restructuring.
Then the other problems were all related to division operations. The default type is now Float, so 1/2 returns 0.5, whereas in Python 2 it returns 0 since the numerator is interpreted as an integer.
Drank coffee WAY too late in the evening and converted @DrPaulynomial's #ActiveSubspaces repo to #Python3. Got to use my hub at https://t.co/cYaLs3Qabi for development in a fresh environment, too! #mathematics #appliedmathematics #computationalmathematics #python2to3 #dev pic.twitter.com/30bprcephv
— Mathematical Michael (@COmpMathematics) January 16, 2019
The pull request in that image now needs to be merged, and likely amended with some Travis CI instructions to test for Python 3.6. At the very least, my passing status reflects backwards compatibility.
These set of commits mark my 20th contribution.