File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -545,6 +545,24 @@ cross-compatibility and is included in scikit-learn as
545545``sklearn.externals.six ``.
546546
547547
548+ Python 3.x support
549+ ------------------
550+
551+ All scikit-learn code should work unchanged in both Python 2.[67]
552+ and 3.2 or newer. Since Python 3.x is not backwards compatible,
553+ that may require changes to code and it certainly requires testing
554+ on both 2.6 or 2.7, and 3.2 or newer.
555+
556+ For most numerical algorithms, Python 3.x support is easy:
557+ just remember that ``print `` is a function and
558+ integer division is written ``// ``.
559+ String handling has been overhauled, though, as have parts of
560+ the Python standard library.
561+ The `six <http://pythonhosted.org/six/ >`_ package helps with
562+ cross-compability and is included in scikit-learn as
563+ ``sklearn.externals.six ``.
564+
565+
548566APIs of scikit-learn objects
549567============================
550568
You can’t perform that action at this time.
0 commit comments