#29006: DecimalField.clean() crashes on sNaN values
--------------------------------------+----------------------------
               Reporter:  Tim Graham  |          Owner:  Tim Graham
                   Type:  Bug         |         Status:  assigned
              Component:  Forms       |        Version:  2.0
               Severity:  Normal      |       Keywords:
           Triage Stage:  Accepted    |      Has patch:  0
    Needs documentation:  0           |    Needs tests:  0
Patch needs improvement:  0           |  Easy pickings:  0
                  UI/UX:  0           |
--------------------------------------+----------------------------
 {{{
 >>> from django.forms import DecimalField
 >>> DecimalField(max_digits=4, decimal_places=2)
 >>> f.clean('sNan')
 ....
   File "django/django/forms/fields.py", line 148, in clean
     self.validate(value)
   File "django/django/forms/fields.py", line 354, in validate
     if not math.isfinite(value):
 ValueError: cannot convert signaling NaN to float
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29006>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.7ac7ff88cf6e74e074ee8782c4b9f957%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to