Opened 2 months ago
Last modified 12 days ago
#36649 assigned New feature
Add `|=` update operator support to `MultiValueDict` and `QueryDict`.
| Reported by: | Adam Johnson | Owned by: | Adam Johnson |
|---|---|---|---|
| Component: | HTTP handling | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | yes |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Per forum discussion, add an __ior__ method to these classes to make PEP 584's |= union operator work, guarding for mutability in QueryDict.
Change History (4)
comment:1 by , 2 months ago
| Description: | modified (diff) |
|---|---|
| Summary: | Add `|=` merge operator support to `MultiValueDict` and `QueryDict`. → Add `|=` update operator support to `MultiValueDict` and `QueryDict`. |
comment:2 by , 2 months ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 7 weeks ago
| Has patch: | set |
|---|
comment:4 by , 12 days ago
| Patch needs improvement: | set |
|---|
Note:
See TracTickets
for help on using tickets.