#31574: BUG: EmailMessage cannot mix tuples and lists as arguments
-----------------------------+--------------------------------------
Reporter: Dehorser | Owner: nobody
Type: Bug | Status: new
Component: Core (Mail) | Version: 3.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-----------------------------+--------------------------------------
Description changed by Dehorser:
Old description:
> `EmailMessage` has fields `to`, `cc`, and `bcc` can be either tuples or
> lists. However, mixing tuples and lists errors at this method:
>
> {{{
> def recipients(self):
> return [email for email in (self.to + self.cc + self.bcc) if email]
> }}}
>
> Lists and tuples can't be added together.
New description:
`EmailMessage` has fields `to`, `cc`, and `bcc` that can be either tuples
or lists. However, mixing tuples and lists errors at this method:
{{{
def recipients(self):
return [email for email in (self.to + self.cc + self.bcc) if email]
}}}
Lists and tuples can't be added together.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/31574#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 on the web visit
https://groups.google.com/d/msgid/django-updates/066.72cbdc2c37fb6db68b317454d2e3c176%40djangoproject.com.