[Numpy-discussion] Context manager for seterr

Stefan van der Walt stefan at sun.ac.za
Sun Dec 14 19:12:00 EST 2014

Hi all,

Since the topic of context managers recently came up, what do you think
of adding a context manager for seterr?

with np.seterr(divide='ignore'):
    frac = num / denom


More information about the NumPy-Discussion mailing list