Skip to content

Conversation

DimitriPapadopoulos
Copy link
Contributor

It is not any safer than normal property access.

It feels like the intent might have been hasattr() instead of getattr(), but the initial commit e2086c3 appears to :

  • assume any attribute dtype is of type numpy.dtype,
  • test whether numpy.dtype.names is a list of fields names or None.

https://numpy.org/doc/stable/reference/generated/numpy.dtype.names.html

Requires #373.

It is not any safer than normal property access.

It feels like the intent might have been `hasattr()` instead of `getattr()`,
but the initial commit e2086c3 appears to :
- assume any attribute `dtype` is of type `numpy.dtype`,
- test whether `numpy.dtype.names` is a list of fields names or `None`.

https://numpy.org/doc/stable/reference/generated/numpy.dtype.names.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant