[Python-ideas] Add additional special method lookups to math module
Masklinn
masklinn at masklinn.net
Wed Nov 9 21:37:32 CET 2011
On 2011-11-09, at 21:32 , Jeremy Sanders wrote:
> Masklinn wrote:
>> This would mean custom numerical types wouldn't be drop-in compatible with
>> existing numerical *code*, which I am under the impression is what Case
>> Van Horsen wants (and is a desirable outcome).
>
> I think it looks too much like hidden magic to me. Explicit is better than
> implicit.
>
It does not look any more like hidden magic than overriding "__add__" does.
> If I were doing this, I wouldn't change the current behaviour by default.
> I'd include a function which would change the built-in functions, if
> required.
That makes no sense.
More information about the Python-ideas
mailing list