On Sun, Dec 27, 2020 at 4:30 PM Brendan Barnwell firstname.lastname@example.org wrote:
That said. . . I'm starting to wonder why not just create a new dunder
called __items__ and have dict alias that to .items(). Then the **-unpacking protocol could use that and everything would be fine, right?
If we could borrow the time machine and create this protocol way back in Python's past, I think it'd be the best. The semantics of maintaining backward compatibility MAY complicate things... but then again, iterator protocol is a bit complicated too, and everyone's fine with just defining __iter__.