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
On Apr 13, 2017 14:25, "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,
Hi,
I have opened a pull request at https://github.com/python/cpython/pull/1171
I am not sure of the wording used, and I'd love some feedback.
Thanks!
On Mon, Apr 17, 2017 at 8:10 AM Steven D'Aprano wrote:
> On Sat, Apr 15, 2017 at 12:09:39AM +1000, Nick Coghlan wrote:
>
On Sat, Apr 15, 2017 at 12:09:39AM +1000, Nick Coghlan wrote:
> On 14 April 2017 at 04:20, Steven D'Aprano wrote:
> > Long ago, when the operator module was first introduced, there was a
> > much stronger correspondence between the operator.__dunder__ functions
> > and dunder
On 14 April 2017 at 04:20, Steven D'Aprano 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
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
+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
>
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