[New-bugs-announce] [issue23185] add inf and nan to math module

Ethan Furman report at bugs.python.org
Wed Jan 7 17:33:44 CET 2015

New submission from Ethan Furman:


  math.nan = float('nan')
  math.inf = float('inf')

Guido's approval:


Followup question:

  Do we add a math.neginf, or somesuch, for float('-inf')?  Or just use -math.inf?

keywords: easy
messages: 233580
nosy: ethan.furman
priority: normal
severity: normal
status: open
title: add inf and nan to math module
type: enhancement
versions: Python 3.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list