diff options
author | Eric Jones <eric@enthought.com> | 2002-09-21 07:49:35 +0000 |
---|---|---|
committer | Eric Jones <eric@enthought.com> | 2002-09-21 07:49:35 +0000 |
commit | 63545217c2cdc7f23c7a1bbd3239d0745f738f21 (patch) | |
tree | b9995965cac74d5ef9902f6fd5583f3666517ecd | |
parent | 11681370cd203ad5a12c01784892e474d57589f2 (diff) | |
download | numpy-63545217c2cdc7f23c7a1bbd3239d0745f738f21.tar.gz |
added a PWONone global object that can be used in place of Py_None. This is
useful because gcc doesn't allow Py_None to be passed into functions with a
PWOBase& declartion.
-rw-r--r-- | weave/common_info.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weave/common_info.py b/weave/common_info.py index 67be8d61a..a0ad70917 100644 --- a/weave/common_info.py +++ b/weave/common_info.py @@ -10,6 +10,9 @@ import base_info module_support_code = \ """ +// global None value for use in functions. +PWOBase PWONone = PWOBase(Py_None); + char* find_type(PyObject* py_obj) { if(py_obj == NULL) return "C NULL value"; |