Issue 9165: Add math.isfinite() - Python tracker (original ) (raw )Created on 2010-07-05 15:16 by benjamin.peterson , last changed 2022-04-11 14:57 by admin . This issue is now closed .
Messages (6)
msg109324 - (view)
Author: Benjamin Peterson (benjamin.peterson) *
Date: 2010-07-05 15:16
It would be equivalent to "not isinf(x) and not isnan(x)".
msg109326 - (view)
Author: Mark Dickinson (mark.dickinson) *
Date: 2010-07-05 15:26
+1. This is natural counterpart to math.isinf and math.isnan. In fact, it's quite surprising to have those two functions available and not math.isfinite. Here's a patch.
msg109328 - (view)
Author: Mark Dickinson (mark.dickinson) *
Date: 2010-07-05 15:43
Version 2 of patch adds cmath.isfinite, and changes doc markup to use ``True`` instead of :const:`True` (thanks Benjamin!).
msg109330 - (view)
Author: Benjamin Peterson (benjamin.peterson) *
Date: 2010-07-05 15:51
Looks good to me.
msg109356 - (view)
Author: Eric V. Smith (eric.smith) *
Date: 2010-07-05 21:26
+1 from me, too. You might want to reference this issue in the Misc/NEWS entry.
msg110030 - (view)
Author: Mark Dickinson (mark.dickinson) *
Date: 2010-07-11 17:39
Applied in r82818 (with issue number added to Misc/NEWS ; thanks, Eric!).
History
Date
User
Action
Args
2022-04-11 14:57:03
admin
set
github: 53411
2010-07-11 17:39:35
mark.dickinson
set
status: open -> closedresolution: acceptedmessages: + stage: patch review -> resolved
2010-07-05 21:26:53
eric.smith
set
nosy: + eric.smith messages: +
2010-07-05 15:51:36
benjamin.peterson
set
messages: +
2010-07-05 15:49:16
mark.dickinson
set
files: - isfinite_v2.patch
2010-07-05 15:49:11
mark.dickinson
set
files: + isfinite_v2.patch
2010-07-05 15:43:42
mark.dickinson
set
files: + isfinite_v2.patch messages: +
2010-07-05 15:26:37
mark.dickinson
set
files: + isfinite.patch type: enhancementassignee: mark.dickinson keywords: + patch nosy: + mark.dickinson messages: + stage: patch review
2010-07-05 15:16:47
benjamin.peterson
create