#35537 closed Cleanup/optimization (fixed)
Use a namedtuple for email attachments and alternatives
| Reported by: | Sarah Boyce | Owned by: | Jake Howard |
|---|---|---|---|
| Component: | Core (Mail) | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Ticket to track: https://github.com/django/django/pull/18261
This makes unpacking the specific indexes more descriptive, whilst avoiding breaking any existing uses (since the field order hasn't changed).
email.alternatives[0][0] # before email.alternatives[0].content #after
Change History (6)
comment:1 by , 17 months ago
| Has patch: | set |
|---|
comment:2 by , 17 months ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 17 months ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
Note:
See TracTickets
for help on using tickets.
Yes, I definitely accept this ticket for a PR I created! 😝