[Numpy-discussion] Inconsistent error messages.
Charles R Harris
Sat May 23 19:25:09 CDT 2009
On Sat, May 23, 2009 at 6:03 PM, Robert Kern <email@example.com> wrote:
> On Sat, May 23, 2009 at 18:57, Charles R Harris
> <firstname.lastname@example.org> wrote:
> > You were supposed to be able to change the default behaviour, but it
> > used to work. I think if you are going to use a warning as a flag then it
> > has to always be raised when a failure occurs, not just the first time.
> A brief test suggest that in Python 2.5.4, at least, as long as you
> set the action to be 'always' before the warning is first issued, it
> works. We can do this just after the IOWarning (or whatever) gets
OK, that would work. Although I think a named argument might be a more
transparent way to specify behaviour than setting the warnings.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion