#36278: MultiValueDict should use sentinel for default values
-------------------------------------+-------------------------------------
Reporter: pebl-work | Owner: (none)
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 5.1
Severity: Normal | Resolution:
Keywords: MultiValueDict | Triage Stage:
sentinel | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by pebl-work:
Old description:
> MultiValueDict has many methods that has a 'default' parameter, but sets
> the default to None. fx:
> https://github.com/django/django/blob/main/django/utils/datastructures.py#L147
>
> This makes
> mvdict.getlist('key', None)
> return [], instead of the expected None.
New description:
MultiValueDict has many methods that has a 'default' parameter, but sets
the default to None. fx:
https://github.com/django/django/blob/main/django/utils/datastructures.py#L129
This makes
mvdict.getlist('key', None)
return [], instead of the expected None.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/36278#comment:1>
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 view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070195d31cf40b-d7e1021f-e1e8-4228-b0dc-5c4d8baa913f-000000%40eu-central-1.amazonses.com.