Opened 18 years ago
Closed 18 years ago
#4483 closed (invalid)
request/response docs don't mention that request.has_key() is deprecated
Reported by: | anonymous | Owned by: | Jacob |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Earlier: a short discussion of me solving a problem by using request.has_key("buttonname") to work out which button on a form had been pushed.
23:58 < Magus-> don't use has_key 23:58 < Magus-> it's going away 23:58 < karl> well, can someone update the docs then? 23:58 < karl> there's no indication of @deprecated 23:59 < Magus-> open a ticket for updating the docs :) 23:59 < Magus-> if 'somekey' in request.POST: works fine
Here's the ticket.
Note:
See TracTickets
for help on using tickets.
Since has_key() exists in Python 2.3, 2.4 and 2.5 and will be in all 2.x releases, it's hardly "going away".