Changes between Version 6 and Version 7 of HttpRequest


Ignore:
Timestamp:
Jan 29, 2008, 12:51:53 PM (16 years ago)
Author:
Marty Alchin
Comment:

Corrected which type of error is raised for non-existing keys

Legend:

Unmodified
Added
Removed
Modified
  • HttpRequest

    v6 v7  
    2727== Dictionary Syntax ==
    2828
    29 !HttpRequest objects allow form data to be retrieved using standard Python dictionary syntax. It will check for `GET` data first, then `POST`. Like any dictionary, accessing a non-existant key will result in an `AttributeError`. This access is read-only.
     29!HttpRequest objects allow form data to be retrieved using standard Python dictionary syntax. It will check for `GET` data first, then `POST`. Like any dictionary, accessing a non-existant key will result in a `KeyError`. This access is read-only.
    3030
    3131{{{
Back to Top