arrays in lists
Robert Kern
robert.kern at gmail.com
Mon Dec 17 18:31:05 EST 2007
Rafael Sachetto wrote:
> No problem here too.
> Using python 2.5 on Ubuntu Gutsy and the newest NumPy
Okay, I just checked with Travis and we do allow 1-element arrays to have a
truth value because it is unambiguous whereas n-element arrays are ambiguous.
Regardless, *in general* one cannot use list.index() to find an array.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list