Agreed with Eric Wieser here have an empty array test as `False` is less than useless, since a non-empty array either returns something based on its contents or an error. This means that one cannot write statements like `if array:`. Does this leave any use case? It seems to me it just shows there is no point in defining the truthiness of an empty array. -- Marten _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion
- Re: [Numpy-discussion] Why are empty arrays False? Nathaniel Smith
- Re: [Numpy-discussion] Why are empty arrays False? Eric Firing
- Re: [Numpy-discussion] Why are empty arrays False... Eric Wieser
- Re: [Numpy-discussion] Why are empty arrays F... Michael Lamparski
- Re: [Numpy-discussion] Why are empty arra... Pauli Virtanen
- Re: [Numpy-discussion] Why are empty ... Michael Lamparski
- Re: [Numpy-discussion] Why are e... Eric Firing
- Re: [Numpy-discussion] Why a... Michael Lamparski
- Re: [Numpy-discussion] Why a... Eric Firing
- Re: [Numpy-discussion] Why a... Marten van Kerkwijk
- Re: [Numpy-discussion] Why a... Benjamin Root
- Re: [Numpy-discussion] Why a... Chris Barker
- Re: [Numpy-discussion] Why a... Michael Lamparski
- Re: [Numpy-discussion] Why a... Chris Barker
- Re: [Numpy-discussion] Why are empty arrays False... Nathaniel Smith
- Re: [Numpy-discussion] Why are empty arrays False? Andrew Nelson