[MATRIX-SIG] array objects and if?

Christine Pao pao@goldilocks.lcs.mit.edu
Wed, 24 Sep 1997 10:56:09 -0400


> Right, but then other sequences can't be multidimensional. I don't know
> whether this is supposed to happen, but I do know that I prefer to test
> explicitly for what I want (zero size, zero length along any specific
> axis, specific shape, etc.).

I guess my question was whether the array object is intended to
be a sequence or a scalar.  It looks like in the case of the "if"
test it is considered a scalar (nonzero array vs. array of zero
length).  Clearly you can't have it both ways and it is easy
enough to explicitly test for zero length.

Thanks.

Christine Pao
Spoken Language Systems Group
MIT Laboratory for Computer Science



_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________