Mercurial > pytave
diff python_to_octave.cc @ 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 | e89a8a37fd8a |
children | b0677c492655 |
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,