Skip to content

Commit 98151cb

Browse files
committed
P3K developer docs
1 parent 9bd98c3 commit 98151cb

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

doc/developers/index.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
548566
APIs of scikit-learn objects
549567
============================
550568

0 commit comments

Comments
 (0)