
Sept. 26, 2020
2:45 a.m.
On Fri, Sep 25, 2020 at 05:05:52PM -0400, Ricky Teachey wrote:
* sheepishly, whispering mostly to myself *
All of that could be solved with new dunders.
What would be the signature of the new dunders? How will the new dunders be backwards compatible? Previous discussions on this required runtime introspection to decide which set of dunders is called. That's going to be slow. There's also the confusion of having two sets of very similar dunders. We got rid of `__getslice__` and friends back in the early 2.x days. Do we want to bring back another set of dunders with very similar names? What would they be called? I've seen proposals `__get_item__` and `__getindex__` which are begging to be confused with `__getitem__`. -- Steve