[Numpy-discussion] A possible addition to PEP 209

Konrad Hinsen hinsen at cnrs-orleans.fr
Fri Sep 7 06:14:02 EDT 2001

> benefits when I can use the overloaded operators and ufuncs, etc. Python
> itself still doesn't know that a NumPy array is a homogenous sequence
> (or might be), because it has no concept of such a thing. If the Python
> interpreter knew that it was homogenous, there could be a lot of
> opportunities for performance enhancements.

Such as? Given the overall dynamic nature of Python, I don't see any
real opportunities outside array-specific code. What optimizations
could be done knowing *only* that all elements of a sequence are of
the same type, but without a particular data layout?

Konrad Hinsen                            | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-
Rue Charles Sadron                       | Fax:  +33-
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais

More information about the NumPy-Discussion mailing list