[Python-ideas] Discourage operator.__dunder__ functions

Sven R. Kunze srkunze at mail.de
Thu Apr 27 14:44:25 EDT 2017


On 13.04.2017 20:20, Steven D'Aprano wrote:
> - And finally, I fail to see how having to type an extra four characters
> is a "convenience".

Just for the sake of completeness:

Re-usage of names is always a convenience. Developers can use a string 
variable to access dynamically both the real dunder method and the 
operator one. It's a frequently used pattern. Whether it's necessary 
here, is different matter.

Sven


More information about the Python-ideas mailing list