[Numpy-discussion] Re: seterr changes

Rob Hooft rob at hooft.net
Sat Apr 22 11:48:01 CDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Albert Strasheim wrote:
| old=N.geterr()
| N.seterr(over='raise')
| # so some calculations that might overflow
| N.seterr(old)

You should try (but I didn't): N.seterr(**old)

Rob
- --
Rob W.W. Hooft  ||  rob at hooft.net  ||  http://www.hooft.net/people/rob/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFESno1H7J/Cv8rb3QRAppZAKCGBRSvL++wg3wFer6odmG8sxyrFwCfQ1nq
p0aVr4r+Z1ZfRBGQgir+KX0=
=eZMa
-----END PGP SIGNATURE-----




More information about the Numpy-discussion mailing list