[Numpy-discussion] 1.2 tasks

Vincent Schut schut@sarvision...
Tue Aug 5 03:04:32 CDT 2008


David Huard wrote:
> 
> 
> On Mon, Aug 4, 2008 at 1:45 PM, Jarrod Millman <millman@berkeley.edu 
> <mailto:millman@berkeley.edu>> wrote:

> <snip>

> Question: Should histogram raise a warning by default (new=True) to warn 
> users that the behaviour has changed ? Or warn only if new=False to 
> remind that
> the old behaviour will be deprecated in 1.3 ?  I think that users will 
> prefer being annoyed at warnings than surprised by an unexpected change, 
> but repeated warnings
> can become a nuisance.
> 
> To minimize annoyance, we could also offer three possibilities:
>   
> new=None (default) : Equivalent to True, print warning about change.
> new=True : Don't print warning.
> new=False : Print warning about future deprecation.
> 
> So those who have already set new=True don't get warnings, and all 
> others are warned. Feedback ?

As a regular user of histogram I say: please warn! Your proposal above 
seems OK to me. I do have histogram in a lot of kind of old (and 
sometimes long-running) code of mine, and I certainly would prefer to be 
warned.

Vincent.



More information about the Numpy-discussion mailing list