File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -423,6 +423,24 @@ Here's a simple example of code using some of the above guidelines::
423
423
return X[i]
424
424
425
425
426
+ Python 3.x support
427
+ ------------------
428
+
429
+ All scikit-learn code should work unchanged in both Python 2.[67]
430
+ and 3.2 or newer. Since Python 3.x is not backwards compatible,
431
+ that may require changes to code and it certainly requires testing
432
+ on both 2.6 or 2.7, and 3.2 or newer.
433
+
434
+ For most numerical algorithms, Python 3.x support is easy:
435
+ just remember that ``print `` is a function and
436
+ integer division is written ``// ``.
437
+ String handling has been overhauled, though, as have parts of
438
+ the Python standard library.
439
+ The `six <http://pythonhosted.org/six/ >`_ package helps with
440
+ cross-compability and is included in scikit-learn as
441
+ ``sklearn.externals.six ``.
442
+
443
+
426
444
APIs of scikit-learn objects
427
445
============================
428
446
Original file line number Diff line number Diff line change @@ -253,8 +253,8 @@ Testing Functions
253
253
- :func: `testing.assert_raise_message `: Assertions for checking the
254
254
error raise message.
255
255
256
- - :class: `mock_urllib2 `: Object which mocks the urllib2 module to fake
257
- requests of mldata. Used in tests of :mod: `sklearn.datasets `.
256
+ - :class: `UrlopenMock `: Object which mocks the urlopen function to fake
257
+ requests to mldata.org. Used in tests of :mod: `sklearn.datasets `.
258
258
259
259
- :func: `testing.all_estimators ` : returns a list of all estimators in
260
260
sklearn to test for consistent behavior and interfaces.
You can’t perform that action at this time.
0 commit comments