#26095: Same behaviour of dict.items and defaultdict.items in DTL
-------------------------------------+-------------------------------------
     Reporter:  kbr                  |                    Owner:  kbr
         Type:                       |                   Status:  assigned
  Cleanup/optimization               |
    Component:  Template system      |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  templates dict       |             Triage Stage:
  defaultdict                        |  Unreviewed
    Has patch:  1                    |      Needs documentation:  1
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by kbr):

 Replying to [comment:2 charettes]:
 > Do you have an idea of how this could be solved without breaking
 backward compatibility?
 >
 > See #25574 for the discussion that added this mention in the docs.

 Thank you for the fast reply! I've read about #25574 before but don't see
 the point about a backward incompatibility. Existing templates should work
 as before and a key 'items' will still mask the object-method. But
 defaultdicts don't have to get typecasted to dicts to work like dicts in
 the DTL anymore. Or do I miss something?

--
Ticket URL: <https://code.djangoproject.com/ticket/26095#comment:4>
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/061.cbb388df81a82eb390bf2a6cf5a8f4da%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to