Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: np.dtype(ctypes.c_voidp) no longer works #12416

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 Nov 19, 2018 · 1 comment
Closed

BUG: np.dtype(ctypes.c_voidp) no longer works #12416

eric-wieser opened this issue Nov 19, 2018 · 1 comment

Comments

@eric-wieser
Copy link
Member

Regression introduced in #12380

In 1.15.4

>>> np.dtype(ctypes.c_voidp)
dtype('uint64')

After:

>>> np.dtype(ctypes.c_voidp)
AttributeError: type object 'c_void_p' has no attribute '__ctype_be__'

It's not clear to me if returning uint64 is the right thing to do, but it's definitely better than producing an AttributeError.

@eric-wieser eric-wieser added this to the 1.16.0 release milestone Nov 19, 2018
eric-wieser added a commit to eric-wieser/numpy that referenced this issue Nov 19, 2018
Historically, this always returned np.uintp - we should continue to do so, even though other pointer types have never been supported

Fixes numpygh-12416
@mattip
Copy link
Member

mattip commented Nov 19, 2018

Closed by #12417

@mattip mattip closed this as completed Nov 19, 2018
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

2 participants