#23088: Paginator.page_range is of inconsistent type in Py2/Py3
-------------------------------------+-------------------------------------
     Reporter:  Keryn Knight         |                    Owner:  mardini
  <django@…>                         |                   Status:  closed
         Type:                       |                  Version:  master
  Cleanup/optimization               |               Resolution:  fixed
    Component:  Core (Other)         |             Triage Stage:  Accepted
     Severity:  Normal               |      Needs documentation:  0
     Keywords:                       |  Patch needs improvement:  0
    Has patch:  1                    |                    UI/UX:  0
  Needs tests:  0                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by apollo13):

 This might cause problems if someone iterates over `page_range` twice; eg
 to show a list of pages above and below the content. So this change has
 the possibility to break existing code; not sure what the best way to go
 ahead is -- one option would be to also force a list on python3 and tell
 ddt to get smarter :þ

-- 
Ticket URL: <https://code.djangoproject.com/ticket/23088#comment:6>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/095.a989fa59625e2e9ffa68aff5015db1c4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to