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, m...@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@scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion


_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to