summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2015-12-19 16:49:35 -0800
committergfyoung <gfyoung17@gmail.com>2015-12-19 16:50:09 -0800
commit8bc592fabf4a2b0bc76db996b1523330ba095be3 (patch)
treec8a1a549e5a093a9433fe9a50a6e0e8bb5358ab1 /numpy/lib/function_base.py
parente2bdaccba1a8691f9223b059b981b2890bb13b09 (diff)
downloadnumpy-8bc592fabf4a2b0bc76db996b1523330ba095be3.tar.gz
DOC: Use print only as function when print_function is imported from __future__
Closes gh-6863.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py8
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
"""