diff options
author | Eric Jones <eric@enthought.com> | 2002-02-14 08:17:04 +0000 |
---|---|---|
committer | Eric Jones <eric@enthought.com> | 2002-02-14 08:17:04 +0000 |
commit | 958af342c7822dc302ac814fb962d1305d6a0a75 (patch) | |
tree | 9205c2cd0fc14093794e5319807ab8339857cb82 /weave/conversion_code.py | |
parent | e0e4a3f3a2453af3043f6c29cefa49a1eb24e528 (diff) | |
download | numpy-958af342c7822dc302ac814fb962d1305d6a0a75.tar.gz |
adding support for instance variables and a few bug cleanups
Diffstat (limited to 'weave/conversion_code.py')
-rwxr-xr-x | weave/conversion_code.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weave/conversion_code.py b/weave/conversion_code.py index 29c50d40e..1eb41d4e8 100755 --- a/weave/conversion_code.py +++ b/weave/conversion_code.py @@ -128,7 +128,7 @@ class instance_handler public: PyObject* convert_to_instance(PyObject* py_obj, const char* name) { - if (!py_obj || !PyFile_Check(py_obj)) + if (!py_obj || !PyInstance_Check(py_obj)) handle_conversion_error(py_obj,"instance", name); // Should I INCREF??? @@ -139,7 +139,7 @@ public: PyObject* py_to_instance(PyObject* py_obj, const char* name) { - if (!py_obj || !PyFile_Check(py_obj)) + if (!py_obj || !PyInstance_Check(py_obj)) handle_bad_type(py_obj,"instance", name); // Should I INCREF??? |