#26095: Same behaviour of dict.items and defaultdict.items in DTL -------------------------------------+------------------------------------- Reporter: kbr | Owner: kbr Type: | Status: closed Cleanup/optimization | Component: Template system | Version: master Severity: Normal | Resolution: wontfix 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 funkybob): Further to the above: - remember this is an isinstance test for every step of every lookup. - what about when someone subclasses dict and gives it a __missing__ method? Same problem, won't be solved - precedent : once we special case handling of one type, I worry more will come... -- Ticket URL: <https://code.djangoproject.com/ticket/26095#comment:8> 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/061.30db3fe767ccabcb347e295297f32660%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.