Mercurial > pytave
comparison python_to_octave.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 | 087e7bc3697f |
children | 16e79a1e96b8 |
comparison
equal
deleted
inserted
replaced
391:70071a5512de | 392:09a1acb81d8b |
---|---|
328 else if (arrayx.check ()) | 328 else if (arrayx.check ()) |
329 pyarr_to_octvalue (oct_value, (PyArrayObject*)py_object.ptr ()); | 329 pyarr_to_octvalue (oct_value, (PyArrayObject*)py_object.ptr ()); |
330 else | 330 else |
331 oct_value = pyobject_wrap_object (py_object.ptr ()); | 331 oct_value = pyobject_wrap_object (py_object.ptr ()); |
332 } | 332 } |
333 | |
334 void pytuple_to_octlist (octave_value_list& octave_list, | |
335 const boost::python::tuple& python_tuple) | |
336 { | |
337 int length = extract<int> (python_tuple.attr ("__len__") ()); | |
338 | |
339 for (int i = 0; i < length; i++) | |
340 { | |
341 pyobj_to_octvalue (octave_list(i), python_tuple[i]); | |
342 } | |
343 } | |
344 } | 333 } |