Author terry.reedy
Recipients docs@python, ncoghlan, rhettinger, steven.daprano, terry.reedy
Date 2017-04-20.18:33:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492713237.5.0.0986060878828.issue30085@psf.upfronthosting.co.za>
In-reply-to
Content
My suggestion from the python-ideas thread:: replace the current

"The function names are those used for special class methods; variants without leading and trailing __ are also provided for convenience."

with

""Many function names are those used for special methods, minus the double underscores.  For backward compatibility, many of these have a variant with the double underscores kept.  We recommend using the dunderless form.  Note that operator.__add__(x, y), for instance, being the same as x + y, is not the same as x.__add__(y)."

Possibly add ", since the first two may result in calling y.__radd__(x)".



Raymond assigned the
History
Date User Action Args
2017-04-20 18:33:57terry.reedysetrecipients: + terry.reedy, rhettinger, ncoghlan, steven.daprano, docs@python
2017-04-20 18:33:57terry.reedysetmessageid: <1492713237.5.0.0986060878828.issue30085@psf.upfronthosting.co.za>
2017-04-20 18:33:57terry.reedylinkissue30085 messages
2017-04-20 18:33:57terry.reedycreate