#20276: bool(MergeDict()) should evaluate to False if component dicts are empty --------------------------------------+-------------------- Reporter: til | Owner: nobody Type: Cleanup/optimization | Status: new Component: HTTP handling | Version: 1.5 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 1 Easy pickings: 0 | UI/UX: 0 --------------------------------------+-------------------- Currently, MergeDict instances are considered True, no matter what the contents of the component dicts are. So you could have 'request.GET or request.POST' evaluate to False and 'request.REQUEST' to True on the same request, which is counter-intuitive.
Adding a {{{__nonzero__}}} method would fix this. -- Ticket URL: <https://code.djangoproject.com/ticket/20276> 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.