[Numpy-discussion] abs for max negative integers - desired behavior?

Matthew Brett matthew.brett@gmail....
Tue Oct 18 14:39:09 CDT 2011


2011/10/18 Frédéric Bastien <nouiz@nouiz.org>:
> What about a parameter that allow to select the option the user want?
> it would select between uint, upcasted_int, -MAX and +MAX. This way,
> at least it will be documented and user who care will have the choose.
> Personally, when the option is available, I would prefer the safe
> version, uint, but I understand that is not all people position.

Would there be any objection to the proposal to add a keyword to abs:


or similar, which would have the effect, when True, of returning uints
from an int?



More information about the NumPy-Discussion mailing list