Why not replace get_printoptions/set_printoptions with a context manager accessed using numpy.printoptions in the same way that numpy.errstate exposes a context manager to seterr/geterr? This would make the set method redundant.
Also, the context manager returned by numpy.errstate, numpy.printoptions, etc. could expose the dictionary directly. This would make the get methods redundant. Best, Neil
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
