[Python-ideas] Module name [was Re: Pre-PEP: adding a statistics module to Python]
MRAB
python at mrabarnett.plus.com
Tue Aug 6 02:01:40 CEST 2013
On 06/08/2013 00:23, Joshua Landau wrote:
> On 6 August 2013 00:15, Alexander Belopolsky
> <alexander.belopolsky at gmail.com <mailto:alexander.belopolsky at gmail.com>>
> wrote:
>
>
> On Mon, Aug 5, 2013 at 6:36 PM, MRAB <python at mrabarnett.plus.com
> <mailto:python at mrabarnett.plus.com>> wrote:
>
> I was thinking that as there's a module called "math" (a short name)
> the statistics module should be called "stats", but then I
> remembered
> that there's already a module called "stat", which could be
> confusing...
>
>
> FWIW, I would also prefer a shorter name (or even folding statistics
> into math altogether.)
>
> We already have pstat module and no-one complained that it can be
> confused with stat. In general, I don't like when stdlib steals
> good English words from the user. If stats does not work - consider
> statslib.
>
>
> As someone who disagrees, what's wrong with "import statistics as
> stats"? Are you saying it would get in the way if you wanted your own
> statistics module?
>
Well, "statistics" is no longer than "subprocess" anyway.
More information about the Python-ideas
mailing list