RFC -- custom operators

Paul Moore p.f.moore at gmail.com
Tue Aug 7 05:03:28 EDT 2018


On Tue, 7 Aug 2018 at 09:03, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:

> I'll looking for comments on custom binary operators: would it be useful,
> if so, what use-cases do you have?

I've never found a need for custom binary operators.

I can imagine some *theoretical* cases where they might be useful (but
no actual use cases!) but those would almost certainly require
relaxing one or more of the restrictions you listed, so they do not
even count as theoretical support for your suggested proposal.

Paul



More information about the Python-list mailing list