Message386083
Yurii, I agree with Raymond that it's probably not worth adding new ABCs for this.
I'm happy to consider patches that add these operators to concrete stdlib mappings on a case-by-case basis. However, please be aware that we already went through a fairly comprehensive review of each dict/Mapping/MutableMapping subclass (real or virtual) in the entire stdlib to see if they would benefit here. I don't think we bothered updating *any* classes that weren't publicly documented, which is probably why "SignalDict" was left untouched.
It's also important to remember that the motivating use-case for PEP 584 was binary "|", and that "|=" just logically followed from that change. In this specific case, I think just using the good ol' update method (or even item assignment) is probably good enough.
I'm not very familiar with how SignalDict is used, though: do we ever actually want to create a new updated copy using binary "|"? That would probably be enough to convince me. |
|
Date |
User |
Action |
Args |
2021-02-01 17:28:35 | brandtbucher | set | recipients:
+ brandtbucher, rhettinger, mrabarnett, steven.daprano, uriyyo |
2021-02-01 17:28:35 | brandtbucher | set | messageid: <1612200515.88.0.462278794899.issue43085@roundup.psfhosted.org> |
2021-02-01 17:28:35 | brandtbucher | link | issue43085 messages |
2021-02-01 17:28:35 | brandtbucher | create | |
|