Author: mtredinnick
Date: 2007-09-13 22:17:46 -0500 (Thu, 13 Sep 2007)
New Revision: 6155

Modified:
   django/trunk/docs/request_response.txt
Log:
Fixed #4726 -- Added a note about the exception raised by QuerySet.__getitem__.


Modified: django/trunk/docs/request_response.txt
===================================================================
--- django/trunk/docs/request_response.txt      2007-09-14 02:54:12 UTC (rev 
6154)
+++ django/trunk/docs/request_response.txt      2007-09-14 03:17:46 UTC (rev 
6155)
@@ -183,6 +183,9 @@
 
     * ``__getitem__(key)`` -- Returns the value for the given key. If the key
       has more than one value, ``__getitem__()`` returns the last value.
+      Raises ``django.utils.datastructure.MultiValueDictKeyError`` if the key
+      does not exist (fortunately, this is a subclass of Python's standard
+      ``KeyError``, so you can stick to catching ``KeyError``).
 
     * ``__setitem__(key, value)`` -- Sets the given key to ``[value]``
       (a Python list whose single element is ``value``). Note that this, as


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to