summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index 74b8ba8a4..e36f196c1 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -2141,8 +2141,8 @@ def geterr():
Examples
--------
- >>> np.geterr() # default is all set to 'ignore'
- {'over': 'ignore', 'divide': 'ignore', 'invalid': 'ignore',
+ >>> np.geterr()
+ {'over': 'warn', 'divide': 'warn', 'invalid': 'warn',
'under': 'ignore'}
>>> np.arange(3.) / np.arange(3.)
array([ NaN, 1., 1.])
@@ -2390,7 +2390,7 @@ class errstate(object):
Outside the context the error handling behavior has not changed:
>>> np.geterr()
- {'over': 'ignore', 'divide': 'ignore', 'invalid': 'ignore',
+ {'over': 'warn', 'divide': 'warn', 'invalid': 'warn',
'under': 'ignore'}
"""