#11036: QueryDict has_key() calls __getitem__ instead of __contains__
---------------------------+------------------------------------------------
 Reporter:  bensmith       |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.0       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 When I try to something like:

 if request.FILES.has_key('key'):
     ....

 If the key does not exist, an exception is raised.  Looking at the stack
 trace, I see that __getitem__ was called. Shouldn't has_key map to
 __contains__?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11036>
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-updates@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to