On Wed, Feb 26, 2020 at 3:43 PM Steven D'Aprano <steve@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.
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