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
viewing an array with a fieldless structured dtype does not update the dtype: #14344
Activity
eric-wieser commentedon Aug 23, 2019
In my opinion, the expected behavior here is to throw an exception, since the new array would need to be 8/0 times longer.
ahaldane commentedon Aug 23, 2019
Yeah, I was just thinking about that too.
Alternatively, we could add a special case for size-0 arrays, which can always be viewed as any dtype. But I'm not sure I like special cases.
Edit: That is in reference to the case in #14310 where I wanted to view a size-0 array as a fieldless dtype.