#26636: Example in QueryDict.update docs is wrong
--------------------------------------+--------------------
Reporter: cole | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
The example given in the docs for QueryDict.update [#point1 (1)] contains
{{{
>>> q = QueryDict('a=1', mutable=True)
>>> q.update({'a': '2'})
>>> q['a'] # returns the last
['2']
}}}
The actual return value of `q['a']` is `'2'`.
[=#point1 (1)]: https://docs.djangoproject.com/en/dev/ref/request-
response/#django.http.QueryDict.update
--
Ticket URL: <https://code.djangoproject.com/ticket/26636>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/047.1da9f919a7989193488494c617253d0a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.