[Python-ideas] Discourage operator.__dunder__ functions

Nick Coghlan ncoghlan at gmail.com
Fri Apr 14 10:09:39 EDT 2017


On 14 April 2017 at 04:20, Steven D'Aprano <steve at pearwood.info> wrote:
> Long ago, when the operator module was first introduced, there was a
> much stronger correspondence between the operator.__dunder__ functions
> and dunder methods. But I think that correspondence is now so weak that
> we should simply treat it as a historical artifact.

+1 from me, with this rationale. The specifics sounds pretty good to
me, too - happy to review a PR if you put one together :)

Cheers,
Nick.

P.S. To be completely honest, I'd forgotten the dunder names in
operator were there :)

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list