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

Nick Coghlan ncoghlan at gmail.com
Tue Aug 6 16:33:25 CEST 2013


On 7 August 2013 00:23, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Le Tue, 06 Aug 2013 16:19:18 +0200,
> "M.-A. Lemburg" <mal at egenix.com> a écrit :
>
>> On 06.08.2013 15:55, Antoine Pitrou wrote:
>> > Le Tue, 06 Aug 2013 15:46:00 +0200,
>> > "M.-A. Lemburg" <mal at egenix.com> a écrit :
>> >>
>> >> Python has grown a lot since the days most of the stdlib
>> >> modules/packages were added, so we have to pay more attention
>> >> to name clashes.
>> >
>> > Of course we can pay attention to name clashes. This is done through
>> > checking at PyPI, though, not by speculating that someone may think
>> > "finance" when they encounter the word "futures".
>>
>> True.
>>
>> Apart from avoiding name clashes, I think adding a bit of extra
>> context by means of placing the module into package also helps people
>> trying to determine the meaning of the module.
>
> Well, "statistics" sounds clear enough to me :-)
> (like "logging" or "unittest")

Yeah, Steven's own stats module on PyPI is the main name clash we need
to avoid, and "statistics" handles that nicely. The other nice thing
about using the top level name is that converting math to a package
would be a pain, so +1 for the simple option :)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list