#13828: Refactor `dictsort` and `dictsortreversed` to make them more DRY
--------------------------------------+-------------------------------------
          Reporter:  suzaku           |         Owner:  suzaku        
            Status:  new              |     Milestone:  1.3           
         Component:  Template system  |       Version:  1.2           
        Resolution:                   |      Keywords:  defaultfilters
             Stage:  Accepted         |     Has_patch:  1             
        Needs_docs:  0                |   Needs_tests:  0             
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Changes (by lrekucki):

  * summary:  [patch] Refactor `dictsort` and `dictsortreversed` to make
              them more DRY => Refactor `dictsort` and
              `dictsortreversed` to make them more DRY

Comment:

 Both functions turn into one-liners in Python 2.4, so a common function
 isn't needed. The previous patch also had a subtle change in behavior: the
 original list was modified by use of filter. Current patch returns a new
 list instead. Also modified tests to explicitly check that the original
 list isn't modified.

 PS. There already is a "has patch" flag. You don't need to write "patch"
 in the topic.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13828#comment:4>
Django <http://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to