diff options
author | Jaime <jaime.frio@gmail.com> | 2015-12-20 07:35:41 +0100 |
---|---|---|
committer | Jaime <jaime.frio@gmail.com> | 2015-12-20 07:35:41 +0100 |
commit | 144c34b8ecd051e05a93c6268290eadb1827afb0 (patch) | |
tree | c8a1a549e5a093a9433fe9a50a6e0e8bb5358ab1 /numpy/lib/function_base.py | |
parent | e2bdaccba1a8691f9223b059b981b2890bb13b09 (diff) | |
parent | 8bc592fabf4a2b0bc76db996b1523330ba095be3 (diff) | |
download | numpy-144c34b8ecd051e05a93c6268290eadb1827afb0.tar.gz |
Merge pull request #6867 from gfyoung/print_fixes
DOC: No Print Statements When Using print_function from __future__
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 8335b4fdb..c69185c1c 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -833,7 +833,7 @@ def asarray_chkfinite(a, dtype=None, order=None): >>> try: ... np.asarray_chkfinite(a) ... except ValueError: - ... print 'ValueError' + ... print('ValueError') ... ValueError @@ -2200,13 +2200,13 @@ def cov(m, y=None, rowvar=True, bias=False, ddof=None, fweights=None, >>> x = [-2.1, -1, 4.3] >>> y = [3, 1.1, 0.12] >>> X = np.vstack((x,y)) - >>> print np.cov(X) + >>> print(np.cov(X)) [[ 11.71 -4.286 ] [ -4.286 2.14413333]] - >>> print np.cov(x, y) + >>> print(np.cov(x, y)) [[ 11.71 -4.286 ] [ -4.286 2.14413333]] - >>> print np.cov(x) + >>> print(np.cov(x)) 11.71 """ |