On Dec 3, 2019, at 08:31, Random832 <random...@fastmail.com> wrote: > > What if there was a general mechanism to allow operators to be implemented > by user code that does not belong to the class?
This seems like something you could build as an import hook pretty easily. Obviously it won’t be as efficient as something using new bytecodes would be, but I don’t think it would be too slow to play with and show off how it can be useful. And instead of people having to ask you how it deals with every edge case (as they think them up one by one), they could just test it. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/NAJP5LEXAJ4W3PZ7O7CAVY5KLGDXOFC5/ Code of Conduct: http://python.org/psf/codeofconduct/