Merge pull request #114 from Haksell/fix31

There was no context manager solution to go with the comment
This commit is contained in:
Nicolas P. Rougier 2020-05-03 10:07:27 +02:00 committed by GitHub
commit f1712fab1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,8 +371,8 @@ Z = np.ones(1) / 0
_ = np.seterr(**defaults)
# Equivalently with a context manager
nz = np.nonzero([1,2,0,0,4,0])
print(nz)
with np.errstate(all="ignore"):
np.arange(3) / 0
< q32
Is the following expressions true? (★☆☆)