summaryrefslogtreecommitdiff
path: root/weave/common_spec.py
diff options
context:
space:
mode:
authorEric Jones <eric@enthought.com>2002-01-14 06:35:59 +0000
committerEric Jones <eric@enthought.com>2002-01-14 06:35:59 +0000
commit3d616a2b426aaaf63b43b95e1fce05ba6bfc984d (patch)
treefb645ea040553a3377154e7eef1757a8854b8093 /weave/common_spec.py
parente6c3b438b2e9897b9f23d1784f15f898525d6617 (diff)
downloadnumpy-3d616a2b426aaaf63b43b95e1fce05ba6bfc984d.tar.gz
* conversion_to_int and py_to_int now both throw TypeError, but conversion_to_in
t prefixes the msg with "Conversion Error:" so that conversion errors can be dif ferentiated from errors thrown in the user's code.
Diffstat (limited to 'weave/common_spec.py')
-rwxr-xr-xweave/common_spec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/weave/common_spec.py b/weave/common_spec.py
index 7464c5532..556399694 100755
--- a/weave/common_spec.py
+++ b/weave/common_spec.py
@@ -27,7 +27,7 @@ class file_specification(common_base_specification):
def declaration_code(self,templatize = 0,inline=0):
var_name = self.retrieve_py_variable(inline)
code = 'PyObject* py_%s = %s;\n' \
- 'FILE* %s = py_to_file(py_%s,"%s");\n' % \
+ 'FILE* %s = convert_to_file(py_%s,"%s");\n' % \
(self.name,var_name,self.name,self.name,self.name)
return code
def cleanup_code(self):
@@ -44,7 +44,7 @@ class callable_specification(common_base_specification):
def declaration_code(self,templatize = 0,inline=0):
var_name = self.retrieve_py_variable(inline)
- code = 'PyObject* %s = py_to_callable(%s,"%s");\n' % \
+ code = 'PyObject* %s = convert_to_callable(%s,"%s");\n' % \
(self.name,var_name,self.name)
return code