#13812: [patch] Change the way BaseContext maintains the dicts ------------------------------+--------------------------------------------- Reporter: suzaku | Owner: nobody Status: new | Milestone: 1.3 Component: Template system | Version: 1.2 Keywords: template context | Stage: Unreviewed Has_patch: 1 | ------------------------------+--------------------------------------------- In `django.template.context`, `BaseContext` is the base class of several context classes.
By maintaining a `list` of `dict`, it supports a LIFO way of resolving template variables with contexts. In the `__getitem__` method, it searches for a dict reversely using `reversed`, I think I can make it a little faster by just iterating the dict list, and maintain the reversed list in `push`. -- Ticket URL: <http://code.djangoproject.com/ticket/13812> 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 django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.