Re: [Python-ideas] Discourage operator.__dunder__ functions

2017-04-13 Thread Terry Reedy
On 4/13/2017 2:20 PM, Steven D'Aprano wrote: Notice that I said *discourage* rather than *deprecate*. Quoting the documentation: The operator module exports a set of efficient functions corresponding to the intrinsic operators of Python. For example, operator.add(x, y) is equivalent

Re: [Python-ideas] Discourage operator.__dunder__ functions

2017-04-13 Thread Guido van Rossum
+1 On Apr 13, 2017 11:26 AM, "Steven D'Aprano" wrote: > Notice that I said *discourage* rather than *deprecate*. > > Quoting the documentation: > > The operator module exports a set of efficient functions > corresponding to the intrinsic operators of Python. For > example, operator.a

[Python-ideas] Discourage operator.__dunder__ functions

2017-04-13 Thread Steven D'Aprano
Notice that I said *discourage* rather than *deprecate*. Quoting the documentation: The operator module exports a set of efficient functions corresponding to the intrinsic operators of Python. For example, operator.add(x, y) is equivalent to the expression x+y. The function name