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.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/29356#comment:1>
Comment (by Tim Graham):
I'm not sure -- you think we should document that something that differs
from
[https://github.com/django/django/blob/c591bc3ccece1514d6b419826c7fa36ada9d9213/django/utils/datastructures.py#L142-L147
the actual signature]?
--
Ticket URL: <https://code.djangoproject.com/ticket/29356#comment:2>
* status: new => closed
* resolution: => invalid
Comment:
Agreed with Tim, the signature is right, the return value is explained in
the paragraph. I can understand the confusion because the default
`default` value is not the default return value.
--
Ticket URL: <https://code.djangoproject.com/ticket/29356#comment:3>
* status: closed => new
* has_patch: 0 => 1
* resolution: invalid =>
Comment:
There's a [https://github.com/django/django/pull/13510 PR with a small
adjustment to the docs] come in for this, which seems acceptable, so
reopening to take that.
--
Ticket URL: <https://code.djangoproject.com/ticket/29356#comment:4>