#16514: Classic integer division used in django.template.defaultfilters
--------------------------+---------------------------------
 Reporter:  blume.mike@…  |          Owner:  nobody
     Type:  Bug           |         Status:  new
Milestone:                |      Component:  Template system
  Version:  SVN           |       Severity:  Normal
 Keywords:                |   Triage Stage:  Unreviewed
Has patch:  0             |  Easy pickings:  1
    UI/UX:  0             |
--------------------------+---------------------------------
 In defaultfilters.py line 93 we have

 nan = (1e200 * 1e200) / (1e200 * 1e200)

 When running python with -Qwarnall this triggers a warning:

 defaultfilters.py:93: DeprecationWarning: classic float division
   nan = (1e200 * 1e200) / (1e200 * 1e200)

 Functionally, this is not really a problem -- the expression results in
 nan whether the '/' is interpreted as 'floored' or 'true' division. It
 just produces a bit of terminal noise for those of us who habitually keep
 the warnings on.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16514>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to