#20287: BaseContext (and it's subclasses) lack emulation of dictionary items()
-------------------------------------+-------------------------------------
     Reporter:  Keryn Knight         |                    Owner:  cannona
  <django@…>                         |                   Status:  assigned
         Type:  New feature          |                  Version:  master
    Component:  Template system      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by bmispelon):

 Like I mentionned in my first comment, I see `BaseContext` as an early
 implementation of a `ChainMap`.

 Since `ChainMap` is python3-only, we can't really use it (yet) directly
 but I think it'd be good to copy its implementation so that switching to
 it will be easier when the time comes.

 Also note that #20404 is closely related (implementing `.keys()` on
 context objects.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20287#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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to