summaryrefslogtreecommitdiff
path: root/weave/conversion_code.py
diff options
context:
space:
mode:
authorEric Jones <eric@enthought.com>2002-01-17 04:44:28 +0000
committerEric Jones <eric@enthought.com>2002-01-17 04:44:28 +0000
commit18eb840d1ff968459c64a73a2131cc50be67c7cb (patch)
treef44ed53d12f79ee4e8967fc0ac5d3c84a062551f /weave/conversion_code.py
parent1ed96f36cb3ecfceb682a9a96d3513ed5189a409 (diff)
downloadnumpy-18eb840d1ff968459c64a73a2131cc50be67c7cb.tar.gz
further changes to make class versions of converters work
Diffstat (limited to 'weave/conversion_code.py')
-rwxr-xr-xweave/conversion_code.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/weave/conversion_code.py b/weave/conversion_code.py
index 656c352c2..b66d6a933 100755
--- a/weave/conversion_code.py
+++ b/weave/conversion_code.py
@@ -102,6 +102,8 @@ public:
}
};
+file_handler x__file_handler = file_handler();
+
PyObject* file_to_py(FILE* file, char* name, char* mode)
{
PyObject* py_obj = NULL;
@@ -145,6 +147,8 @@ public:
}
};
+instance_handler x__instance_handler = instance_handler();
+
PyObject* instance_to_py(PyObject* instance)
{
// Don't think I need to do anything...
@@ -186,6 +190,8 @@ public:
}
};
+callable_handler x__callable_handler = callable_handler();
+
PyObject* callable_to_py(PyObject* callable)
{
// Don't think I need to do anything...
@@ -226,6 +232,8 @@ public:
}
};
+module_handler x__module_handler = module_handler();
+
PyObject* module_to_py(PyObject* module)
{
// Don't think I need to do anything...
@@ -399,6 +407,7 @@ public:
}
};
+scalar_handler x__scalar_handler = scalar_handler();
/////////////////////////////////////
// The following functions are used for scalar conversions in msvc
// because it doesn't handle templates as well.