#36638: The default for ArrayAgg should be an empty list rather than None
-------------------------------------+-------------------------------------
     Reporter:  Markus Amalthea      |                     Type:
  Magnuson                           |  Uncategorized
       Status:  new                  |                Component:
                                     |  Uncategorized
      Version:  5.2                  |                 Severity:  Normal
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 I would expect (in Python, broadly) a function that returns a list of
 values to always return a list. What is the reasoning behind this not
 being the case for ArrayAgg? Instead, the default value is `None` when
 there are no values, and I'm sure there is a good reason for this.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36638>
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/01070199aa9b9a74-b800836f-cb26-4d28-9959-166375949b59-000000%40eu-central-1.amazonses.com.

Reply via email to