[Numpy-discussion] Why are empty arrays False?

Andrew Nelson andyfaff at gmail.com
Sat Aug 19 03:57:58 EDT 2017


> I think the consistency between bool([]) and
bool(array([])) is worth preserving

I'm with Eric Firing on this one. Empty sequences are False in Python.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20170819/a7ac300f/attachment.html>


More information about the NumPy-Discussion mailing list