[Numpy-discussion] Which NumPy/Numpy/numpy spelling?

josef.pktd at gmail.com josef.pktd at gmail.com
Mon Aug 29 12:56:50 EDT 2016


https://mail.scipy.org/pipermail/scipy-user/2010-June/025756.html

"NumPy and SciPy to refer to the projects. numpy and scipy to refer to
the packages, specifically. When in doubt, use the former."

I thought there was also another discussion about capital letters, but
I don't find it.

Josef


On Mon, Aug 29, 2016 at 9:22 AM, Bartosz Telenczuk <mail at telenczuk.pl> wrote:
> Hi,
>
> I would not mind any choice as long as it's consistent.
>
> I agree that using all-lowercase spelling may avoid some common errors. However,
> PEP8 requires all module/package names to be lower case [1].  If we force the
> name of the library and the corresponding package to be the same, all Python
> libraries would be named in lowercase. This would not be the best choice for
> libraries, which have multi-component names (like NumPy = Numerical Python).
>
> Note also that both the Wikipedia page [2] and the official NumPy logo [3] use
> "NumPy" spelling.
>
> Some other popular [4] libraries use similar dichotomies:
>
> - Django - import django
> - Cython - import cython
> - PyYAML - import yaml
> - scikit-learn - import sklearn
>
> On the other hand all standard Python libraries are lower-case named.
>
> Cheers,
>
> Bartosz
>
> [1] https://www.python.org/dev/peps/pep-0008/#package-and-module-names
> [2] https://en.wikipedia.org/wiki/NumPy
> [3] http://www.numpy.org/_static/numpy_logo.png
> [4] http://pypi-ranking.info/alltime
>
>> On 08/29/2016 07:43 AM, mail at telenczuk.pl wrote:
>> > What is the official spelling of NumPy/Numpy/numpy?
>>
>> IMHO it should be written numpy, because ...
>>
>>  >>> import NumPy
>> Traceback (most recent call last):
>>    File "<stdin>", line 1, in <module>
>> ImportError: No module named NumPy
>>  >>> import Numpy
>> Traceback (most recent call last):
>>    File "<stdin>", line 1, in <module>
>> ImportError: No module named Numpy
>>  >>> import numpy
>>  >>>
>>
>> Phil
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
>> https://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion



More information about the NumPy-Discussion mailing list