#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 -------------------------------------+------------------------------------- Changes (by timgraham):
* status: assigned => closed * resolution: => wontfix Comment: In #django-dev, FunkyBob says, "My rule is - never pass defaultdict to a template. In the [fairly simplistic] profiling I've run on templates, isinstance is _the_ biggest cause of time in template rendering." Feel free to reopen if you come up with an alternate implementation. -- Ticket URL: <https://code.djangoproject.com/ticket/26095#comment:7> 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.fef4edeaf7afcb5509a482603dd3f0aa%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.