NumPy's undocumented type code

Konrad Hinsen hinsen at cnrs-orleans.fr
Thu Mar 8 09:20:39 EST 2001


Nadav Horesh <nadavh at envision.co.il> writes:

> Recently I encountered an unfamiliar NumPy array type code -- <tt><font size=+1>"O"</font></tt>.

That's the "general object" array, its elements are arbitrary Python
objects. It can be a very convenient for some applications, but,
unlike with the other array types, the execution speed for arithmetic
operations etc. is no better than equivalent operations with lists.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                            | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron                       | Fax:  +33-2.38.63.15.17
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais
-------------------------------------------------------------------------------



More information about the Python-list mailing list