summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-10-08 13:55:33 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-10-08 13:55:33 +0000
commit726fb0abae756d03d023e80d35e2c237fe4160af (patch)
tree58a9c096cc9f97c949888fd5c36aca512843a89e
parent670e8035b80dae90df486bb344f12b2697af1b46 (diff)
downloadnumpy-726fb0abae756d03d023e80d35e2c237fe4160af.tar.gz
ENH: add a list of all api dicts which define the C API.
Wherever we need to check for API changes, we will just need to introspect this variable.
-rw-r--r--numpy/core/code_generators/numpy_api.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/numpy/core/code_generators/numpy_api.py b/numpy/core/code_generators/numpy_api.py
index 4d4ec93a4..a4782bc71 100644
--- a/numpy/core/code_generators/numpy_api.py
+++ b/numpy/core/code_generators/numpy_api.py
@@ -294,3 +294,15 @@ ufunc_funcs_api = {
'PyUFunc_FromFuncAndDataAndSignature': 31,
'PyUFunc_SetUsesArraysAsData': 32,
}
+
+# List of all the dicts which define the C API
+full_api = (
+ multiarray_global_vars,
+ multiarray_global_vars_types,
+ multiarray_scalar_bool_values,
+ multiarray_types_api,
+ multiarray_funcs_api,
+ ufunc_funcs_api,
+ ufunc_types_api
+)
+