comparison pyexec.cc @ 411:3613ffbd52b2

Overhaul implicit conversion of arguments and return values * oct-py-types.cc, oct-py-types.h (pytave::py_implicitly_convert_argument, pytave::py_implicitly_convert_return_value): New functions. * __py_struct_from_dict__.cc, oct-py-eval.cc, pycall.cc, pyeval.cc, pyexec.cc: Use them instead of legacy conversion functions. Add necessary #includes, remove #includes of legacy header files. * @pyobject/subsasgn.m, @pyobject/subsref.m: Change %!tests that depend on NumPy implicit conversion into %!xtests. * octave_to_python.cc, octave_to_python.h, python_to_octave.cc, python_to_octave.h: Delete, no longer used. * Makefile.am (COMMON_SOURCE_FILES, PYTAVE_HEADER_FILES): Remove the files.
author Mike Miller <mtmiller@octave.org>
date Wed, 03 May 2017 16:30:45 -0700
parents 95c6ad0be828
children 9bf8ba050122
comparison
equal deleted inserted replaced
410:95c6ad0be828 411:3613ffbd52b2
31 31
32 #include "exceptions.h" 32 #include "exceptions.h"
33 #include "oct-py-eval.h" 33 #include "oct-py-eval.h"
34 #include "oct-py-init.h" 34 #include "oct-py-init.h"
35 #include "oct-py-util.h" 35 #include "oct-py-util.h"
36 #include "python_to_octave.h"
37 36
38 DEFUN_DLD (pyexec, args, nargout, 37 DEFUN_DLD (pyexec, args, nargout,
39 "-*- texinfo -*-\n\ 38 "-*- texinfo -*-\n\
40 @deftypefn {} {} pyexec (@var{expr})\n\ 39 @deftypefn {} {} pyexec (@var{expr})\n\
41 @deftypefnx {} {} pyexec (@var{expr}, @var{localns})\n\ 40 @deftypefnx {} {} pyexec (@var{expr}, @var{localns})\n\