changeset 353:826a23f63f75

Return pyobject constructed from Python value correctly (fixes issue #66) * python_to_octave.cc (pytave::pyobj_to_oct_pyobject): Handle return value list from feval() correctly.
author Mike Miller <mtmiller@octave.org>
date Mon, 22 Aug 2016 14:55:19 -0700
parents eac35d84ef0d
children eec3ed1c0578
files python_to_octave.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python_to_octave.cc	Wed Aug 17 21:19:58 2016 -0700
+++ b/python_to_octave.cc	Mon Aug 22 14:55:19 2016 -0700
@@ -328,7 +328,7 @@
 
     main_module.attr ("_in_octave")[id] = py_object;
     // Create @pyobject
-    oct_value = feval ("pyobject", ovl (0, id), 2);
+    oct_value = feval ("pyobject", ovl (0, id), 1)(0);
   }
 
   void pyobj_to_octvalue (octave_value& oct_value,