Skip to content

Commit

Permalink
Merge pull request numpy#13322 from eric-wieser/cyclic-import
Browse files Browse the repository at this point in the history
MAINT: Move umath error helpers into their own module
  • Loading branch information
charris authored Apr 14, 2019
2 parents 396cc49 + b87a9e2 commit fb425b7
Show file tree
Hide file tree
Showing 4 changed files with 469 additions and 447 deletions.
6 changes: 3 additions & 3 deletions numpy/core/_add_newdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4415,7 +4415,7 @@
Examples
--------
>>> np.geterrobj() # first get the defaults
[10000, 0, None]
[8192, 521, None]
>>> def err_handler(type, flag):
... print("Floating point error (%s), with flag %s" % (type, flag))
Expand All @@ -4424,7 +4424,7 @@
>>> old_err = np.seterr(divide='raise')
>>> old_handler = np.seterrcall(err_handler)
>>> np.geterrobj()
[20000, 2, <function err_handler at 0x91dcaac>]
[8192, 521, <function err_handler at 0x91dcaac>]
>>> old_err = np.seterr(all='ignore')
>>> np.base_repr(np.geterrobj()[1], 8)
Expand Down Expand Up @@ -4479,7 +4479,7 @@
--------
>>> old_errobj = np.geterrobj() # first get the defaults
>>> old_errobj
[10000, 0, None]
[8192, 521, None]
>>> def err_handler(type, flag):
... print("Floating point error (%s), with flag %s" % (type, flag))
Expand Down
Loading

0 comments on commit fb425b7

Please sign in to comment.