(Un)Happily we have the keyword "as" already. They can make their own aliases.
On Tue, Feb 25, 2020, 11:46 PM Steven D'Aprano <st...@pearwood.info> 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. > > > -- > Steven > _______________________________________________ > 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/A4KGHRFDARKOV6ESS2E3GDPNC2XSO563/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ 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/IHFCNNOBW4QMNNA6LAWTAIY6P64HHXIW/ Code of Conduct: http://python.org/psf/codeofconduct/