3 ms·
> Python libraries kind of used to do this more, but seem to be doing it less now… I’d argue that it has to do with C extensions making it a lot of work to get
by UncleEntity 4y ago
> Python libraries kind of used to do this more, but seem to be doing it less now…
I’d argue that it has to do with C extensions making it a lot of work to get it right.
Some library code does it (which is where I learned how to do it ‘correctly’) but in general, run of the mill code it is pretty rare. Just something like an overloaded __add__ turns into a page and a half of code and there’s a lot of functions in the numbers protocol struct.
Labor of love really.