#5138: Add __contains__ to HttpRequest to make it more dict-like
-------------------------+--------------------------------------------------
Reporter: anonymous | Owner: jacob
Status: new | Component: Uncategorized
Version: SVN | Resolution:
Keywords: | Stage: Design decision needed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-------------------------+--------------------------------------------------
Changes (by [EMAIL PROTECTED]):
* has_patch: 0 => 1
Comment:
This caught me out as well today. I think it's a good idea to enable, and
then promote, the use of "in" over the "has_key" method since
dict.has_key() is being depreciated.
I'm also attaching a patch to achieve this.
--
Ticket URL: <http://code.djangoproject.com/ticket/5138#comment:3>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---