-
Notifications
You must be signed in to change notification settings - Fork 80
Closed as not planned
Labels
Python APIIssue is about the Python APIIssue is about the Python APIenhancementNew feature or requestNew feature or requestfutureIssues that are closed as they are not planned in the medium-term, but which are still desirable.Issues that are closed as they are not planned in the medium-term, but which are still desirable.good first issueGood for newcomersGood for newcomers
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 [].
Metadata
Metadata
Assignees
Labels
Python APIIssue is about the Python APIIssue is about the Python APIenhancementNew feature or requestNew feature or requestfutureIssues that are closed as they are not planned in the medium-term, but which are still desirable.Issues that are closed as they are not planned in the medium-term, but which are still desirable.good first issueGood for newcomersGood for newcomers