#29356: request.GET.getlist default is [] instead of None
------------------------------------------------+------------------------
Reporter: JorisBenschop | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
------------------------------------------------+------------------------
from https://docs.djangoproject.com/en/dev/ref/request-
response/#django.http.QueryDict.getlist:
QueryDict.getlist(key, default=None)¶
Returns a list of the data with the requested key. Returns an empty
list if the key doesn’t exist and a default value wasn’t provided
As far as I know an empty list, [] is not the same as None. should it thus
not be rewritten as:
QueryDict.getlist(key, default=[ ])¶
--
Ticket URL: <https://code.djangoproject.com/ticket/29356>
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/056.fb2a7613e1f19282400e070fab28cf3e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.