#23782: Lazy objects don't support __contains__ -------------------------------+-------------------- Reporter: Kronuz | Owner: nobody Type: Uncategorized | Status: new Component: Uncategorized | Version: 1.7 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------- While trying to use SimpleLazyObject to check if something is contained in an object, the following throws an exception (`AttributeError: 'int' object has no attribute 'lower'`) when the `not in` fallback to the sequence iteration protocol: `'Content-Language' not in SimpleLazyObject(lambda: HttpResponseRedirect('/'))`
-- Ticket URL: <https://code.djangoproject.com/ticket/23782> 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/049.74d93e14a8cfa57b5e8bd96c3df67b78%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.