Guido, thank you so much for your kind review. I think I would prefer ``` (A ~ B) + C ``` as it would first create a coalescing object to which it knows C is added, and this is the usual way it is used.
I believe Sympy could handle it easily either way, but dataframes/arrays less well so (since addition is defined for these objects and would return the sums before the calling of `~`). The example cited *could* work so long as Lottery points to an object that understands `~`, and the other names point to objects that Lottery is compatible with. But this is just the general case from an implementation agnostic point of view. I would expect the following sorts of usages: - sympy (for models and distributions) - pandas, numpy, sklearn, statsmodels (for statistical models and functions) - other mathematically minded libraries (monadic bind or compose?) I will look more closely at PEP 465. Should I write up a PEP? _______________________________________________ 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/JCR2IJSFEUNWHBTYUYSK7ET26QL4OC2J/ Code of Conduct: http://python.org/psf/codeofconduct/