Open suntzu86 opened 9 years ago
I would love to see this happen. I don't know enough about the code base to do it myself, but consider this a +1 for porting to python3. :)
+1 It would be really cool to have a Python 3 compatible interface
+1
These are all addressed here: https://github.com/Yelp/MOE/pull/466
It looks like the work was done, but it was never merged. Is this still a possibility?
Python 2.7 is pretty much at the end of it's support life-span (and way past the end of development). We dev'd for 2.7 originally b/c of external constraints in our first runtime environments. Those are now gone.
The python-suggested basic workflow for doing this conversion: https://docs.python.org/3/whatsnew/3.0.html#porting-to-python-3-0 more detailed: https://docs.python.org/3/howto/pyporting.html
This ticket is for tracking what needs to get changed. This is not a complete list but hopefully covers the big ones. Hopefully the "-3" option from the prev link covers these:
print
is now a statement (wow thank god)a // b
to get the old C-style, truncating division.something cool:
function annotations: http://legacy.python.org/dev/peps/pep-3107/ We annotate params/types separately in the docstring. This lets you do it in the arglist:
which is all accessible introspectively.