[Python-ideas] Discourage operator.__dunder__ functions
Steven D'Aprano
steve at pearwood.info
Sun Apr 16 22:34:31 EDT 2017
On Sat, Apr 15, 2017 at 12:09:39AM +1000, Nick Coghlan wrote:
> 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 :)
http://bugs.python.org/issue30085
For some reason, Github won't allow me to log in at the moment. It keeps
insisting I need to enable cookies, even though I have. Perhaps it
doesn't like my browser? I'll have to try on another computer with a
different browser.
Terry, you had some nice suggestions for wording. If you want to submit
a PR, feel free to take over the issue. I probably won't get a chance to
do any more on this for a week.
--
Steve
More information about the Python-ideas
mailing list