diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-02-18 20:43:47 -0800 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-03-18 17:29:34 -0500 |
commit | e6fde0eb58fe10a7cc58beee61ca77f269223b66 (patch) | |
tree | 9447aaf3ca0c494af00b60f1f62de3d801dce960 /numpy | |
parent | 7c365448314fc47f6bc99c562caf238efe986b36 (diff) | |
download | numpy-e6fde0eb58fe10a7cc58beee61ca77f269223b66.tar.gz |
PyDict_GET_SIZE is not public (or at least not on older python)
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/multiarray/dtypemeta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/dtypemeta.c b/numpy/core/src/multiarray/dtypemeta.c index 7c03e8a46..daaf58aa6 100644 --- a/numpy/core/src/multiarray/dtypemeta.c +++ b/numpy/core/src/multiarray/dtypemeta.c @@ -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."); |