Open
Description
I was recently helping a new user who has R experience who tried tables.nodes['individual'==0]
which gave the first node as it is equal to tables.nodes[False]
which gets interpreted as tables.nodes[0]
. (This is because isinstance(False, numbers.Integral)
is True
which was a surprise to me)
I think it should be a ValueError
to __getitem__
with a bool? Or do what numpy does and return []
.