comparison octave_to_python.cc @ 392:09a1acb81d8b

Delete legacy code no longer used in project * configure.ac: Drop checks for headers and functions no longer needed. * exceptions.cc, exceptions.h: Delete pytave::init_exceptions and related methods and properties for registering exceptions with Boost.Python runtime. * octave_to_python.cc, octave_to_python.h (pytave::octlist_to_pytuple): Delete. * python_to_octave.cc, python_to_octave.h (pytave::pytuple_to_octlist): Delete.
author Mike Miller <mtmiller@octave.org>
date Mon, 03 Apr 2017 13:31:00 -0700
parents b0677c492655
children 692cecebc71f
comparison
equal deleted inserted replaced
391:70071a5512de 392:09a1acb81d8b
200 } 200 }
201 else 201 else
202 throw value_convert_exception ( 202 throw value_convert_exception (
203 "Conversion from Octave value not implemented"); 203 "Conversion from Octave value not implemented");
204 } 204 }
205
206 void octlist_to_pytuple (boost::python::tuple& python_tuple,
207 const octave_value_list& octave_list)
208 {
209 boost::python::list seq;
210 int length = octave_list.length ();
211
212 for (int i = 0; i < length; i++)
213 {
214 boost::python::object py_object;
215 octvalue_to_pyobj (py_object, octave_list(i));
216 seq.append (py_object);
217 }
218
219 python_tuple = tuple (seq);
220 }
221 } 205 }