8000 API: Create Preliminary DTypeMeta class and np.dtype subclasses by seberg · Pull Request #15508 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

API: Create Preliminary DTypeMeta class and np.dtype subclasses #15508

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

Merged
merged 10 commits into from
May 27, 2020
Prev Previous commit
Next Next commit
PyDict_GET_SIZE is not public (or at least not on older python)
  • Loading branch information
seberg committed Mar 18, 2020
commit e6fde0eb58fe10a7cc58beee61ca77f269223b66
2 changes: 1 addition & 1 deletion numpy/core/src/multiarray/dtypemeta.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ legacy_dtype_default_new(PyArray_DTypeMeta *self,
}

if (PyTuple_GET_SIZE(args) != 0 ||
(kwargs != NULL && PyDict_GET_SIZE(kwargs))) {
(kwargs != NULL && PyDict_Size(kwargs))) {
PyErr_Format(PyExc_TypeError,
"currently only the no-argument instantiation is supported; "
"use `np.dtype` instead.");
Expand Down
0