#36278: MultiValueDict should use sentinel for default values
-------------------------------------+-------------------------------------
     Reporter:  pebl-work            |                     Type:
                                     |  Uncategorized
       Status:  new                  |                Component:
                                     |  Uncategorized
      Version:  5.1                  |                 Severity:  Normal
     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
-------------------------------------+-------------------------------------
 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.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36278>
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/01070195d31ba1b8-85dcfc13-4429-495b-b9e1-14e3553d029f-000000%40eu-central-1.amazonses.com.

Reply via email to