Aaron,

It's too soon to start drafting a PEP. However you need to get at least one
core dev to understand your proposal well enough that they will act as a
*sponsor* for your proposal. Once you have a willing sponsor you can then
put it forward in PEP form. See PEP 1 for PEP sponsorship when the author
is not a core dev. (And sorry, no, I'm not going to be your sponsor.)

In the meantime, now that you have explained your preferred priority for
`~`, perhaps you can also explain what kind of behavior you would like to
use this for? Listing a number of libraries that "could use this" isn't
enough. Is there an existing function in one of the libraries you mention
that has the desired behavior (in the context of that library)? That would
help.

--Guido



On Sun, Feb 23, 2020 at 4:58 PM Aaron Hall via Python-ideas <
python-ideas@python.org> wrote:

> 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/
>


-- 
--Guido van Rossum (python.org/~guido)
*Pronouns: he/him **(why is my pronoun here?)*
<http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________
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/W7OFF5LW252MOIH35L3PAFKFELFFCKXB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to