[Python-ideas] Module name [was Re: Pre-PEP: adding a statistics module to Python]

Joshua Landau joshua at landau.ws
Tue Aug 6 01:23:26 CEST 2013


On 6 August 2013 00:15, Alexander Belopolsky <alexander.belopolsky at gmail.com
> wrote:

>
> On Mon, Aug 5, 2013 at 6:36 PM, MRAB <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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130806/40ab4c33/attachment-0001.html>


More information about the Python-ideas mailing list