8000 BUG: dtype repr of subclasses of np.void throw an exception · Issue #12206 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: dtype repr of subclasses of np.void throw an exception #12206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eric-wieser opened this issue Oct 18, 2018 · 0 comments
Closed

BUG: dtype repr of subclasses of np.void throw an exception #12206

eric-wieser opened this issue Oct 18, 2018 · 0 comments

Comments

@eric-wieser
Copy link
Member
eric-wieser commented Oct 18, 2018

This one is on me, I think, in #10602. I wasn't aware this was legal:

>>> np.__version__
'1.13.3'
>>> class Custom(np.void): pass
>>> np.dtype(Custom)
dtype('V')
>>> np.__version__
'1.16.0.dev0+7af8e10'
>>> class Custom(np.void): pass
>>> np.dtype(Custom)
RuntimeError: Internal error: NumPy dtype unrecognized type number

Not sure if this affects 1.15.0

@eric-wieser eric-wieser added this to the 1.16.0 release milestone Oct 18, 2018
eric-wieser added a commit to eric-wieser/numpy that referenced this issue Oct 22, 2018
Fixes numpy#12206, which was a regression introduced by numpy#10602

Frankly I'd consider the results expected by `test_void_subclass_unsized` and `test_void_subclass_sized` undesirable, but they match the behavior in 1.12.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0