[PYTHON MATRIX-SIG] Re: empty array
Konrad HINSEN
hinsenk@ere.umontreal.ca
Mon, 25 Mar 1996 15:25:29 -0500
> I made the obvious patches to get this to work and noticed that
> array([]) creates an empty array of characters (This is the lowest
> type in the type hierarchy). This is probably not what people want in
> the general case. Any suggestions on how to deal with the type of an
> empty array?
Of course explicit type specifications should work as expected.
For the default type, I am surprised that "character" is
in the hierarchy at all. Character arrays behave differently
and are not coerced to number arrays. They should therefore
be a separate category. The default type for empty arrays
would then be "integer", which is fine.
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsenk@ere.umontreal.ca
Departement de chimie | Tel.: +1-514-343-6111 ext. 3953
Universite de Montreal | Fax: +1-514-343-7586
C.P. 6128, succ. Centre-Ville | Deutsch/Esperanto/English/Nederlands/
Montreal (QC) H3C 3J7 | Francais (phase experimentale)
-------------------------------------------------------------------------------
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================