[Python-ideas] math.inf and math.nan constants
Marco Buttu
marco.buttu at gmail.com
Wed Jan 7 16:23:29 CET 2015
On 07/01/2015 15:58, Todd wrote:
> Yes, this would be a shortcut for that. math.nan and math.inf are
> less verbose than float("nan") and float("inf"), even if you aren't
> already using the math module (fewer characters total, and in
> particular fewer special characters). It would also, at least in my
> opinion, be more readable. Plus there is already the math.isnan and
> math.isinf, so I don't think it would be totally out-of-place.
I totally agree. +1
--
Marco Buttu
INAF-Osservatorio Astronomico di Cagliari
Via della Scienza n. 5, 09047 Selargius (CA)
Phone: 070 711 80 217
Email: mbuttu at oa-cagliari.inaf.it
More information about the Python-ideas
mailing list