On Wed, Feb 26, 2020 at 3:43 PM Steven D'Aprano <[email protected]> wrote:
>
> On Tue, Feb 25, 2020 at 10:08:57PM -0500, David Mertz wrote:
>
> > >>> from statistics import stdev as σ
> > >>> σ([5, 6, 4, 6, 3, 7])
> > 1.4719601443879744
> >
> >  :-)
>
> You know what you've done now, don't you? Somebody is going to propose a
> whole series of aliased names for statistics and math modules:
>
> Σ = sum
> σ = statistics.stdev
> μ = statistics.mean
> Π = math.prod
> γ = math.gamma
>
> etc.

Stick it up on PyPI. You "from blackboard import *" and then proceed
to use all those symbols freely. Of course, things could get a little
difficult when one symbol has multiple meanings, but version 2.0 of
the module will have not just aliases, but magic objects that figure
out from context what the meaning is supposed to be.

ChrisA
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/ML35AYL5VIFMICLD44WO5ZWQ45KFL3GH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to