Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#13042 closed (invalid)

QueryDict documentation doesn't include .keys() or .iterkeys() entries

Reported by: schwanksta Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords: querydict keys documentation
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I was checking to see if a QueryDict had a .keys() or .iterkeys() method, but the documentation ( only lists .items() and .iteritems(). Thinking that this would be a weird omission, I decided to check myself:

>>> qd = QueryDict('a=1&b=2')
>>> qd
<QueryDict: {u'a': [u'1'], u'b': [u'2']}>
>>> qd.keys()
[u'a', u'b']
>>> qd.iterkeys()
<dictionary-keyiterator object at 0xb467ee0>

As you can see, the methods exist, but they're just missing from the docs.

Change History (2)

comment:1 Changed 6 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

The documentation says that QueryDict implements all the standard dictionary methods, and then says that only the methods which differ from standard dictionary behavior will be documented.

comment:2 Changed 6 years ago by schwanksta

Whoops, must have skipped over that line. Thanks.

Note: See TracTickets for help on using tickets.
Back to Top