You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Record access on non-existing fields: no error issued #4806
This is inconsistent with accessing a single field:
>>> arr["lkjlkj"]
Traceback (most recent call last):
File "<ipython-input-7-7a431ec24c6c>", line 1, in <module>
arr["lkjlkj"]
ValueError: field named lkjlkj not found
Furthermore, it creates error messages that can be harder to make sense of, like in:
for (x, y_value) in arr[["x", "y_valuf"]]: # Note the typo in "y_valuf"
…
Activity
seberg commentedon Jun 13, 2014
Sounds reasonable. The code is in function _index_fields in numpy/core/_internal.py