Modify ↓
#13241 closed defect (fixed)
Inf and NaN should be rejected in auto preview timeout of prefs/userinterface
Reported by: | Jun Omae | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.4.1 |
Component: | general | Version: | 1.4 |
Severity: | trivial | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Reject |
||
API Changes: | |||
Internal Changes: |
Description
Attachments (0)
Change History (5)
comment:1 by , 5 years ago
Milestone: | next-stable-1.4.x → 1.4.2 |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:2 by , 5 years ago
Milestone: | 1.4.2 → 1.4.1 |
---|
comment:3 by , 5 years ago
Looks good to me but we could use math.isinf()
rather than float('inf')
.
$ python2.6 Python 2.6.9 (default, Jul 29 2017, 12:47:14) [GCC 5.4.0 20160609] on linux4 Type "help", "copyright", "credits" or "license" for more information. >>> import math >>> for val in ('nan', 'inf', '+inf', '-inf'): ... fval = float(val) ... val, fval, math.isinf(fval), math.isnan(fval) ... ('nan', nan, False, True) ('inf', inf, True, False) ('+inf', inf, True, False) ('-inf', -inf, True, False)
comment:4 by , 5 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
comment:5 by , 5 years ago
Release Notes: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
Proposed changes in [8613721e1/rjollos.git].