Mercurial > pytave
changeset 195:459b6f5c56ed
maint: prefer term "argument" over "parameter" for values passed into a function
* pycall.cc (Fpycall): Reword error message to use term "argument" for values
passed into a function.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Thu, 14 Jul 2016 23:30:30 -0700 |
parents | d2385636bae5 |
children | 43e92dd60dd0 |
files | pycall.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pycall.cc Thu Jul 14 23:23:34 2016 -0700 +++ b/pycall.cc Thu Jul 14 23:30:30 2016 -0700 @@ -178,7 +178,7 @@ } catch (pytave::value_convert_exception const &) { - error ("pycall: error in parameter type conversion"); + error ("pycall: error in argument type conversion"); } catch (error_already_set const &) { @@ -221,7 +221,7 @@ %!assert (pycall ("typename", "Hello world"), "str") %!assert (pycall ("typename", char ([1, 2, 3])), "str") -%!error <parameter type conversion> +%!error <argument type conversion> %! pyexec ("def intwrapper(x):\n return int(x)\n"); %! pycall ("intwrapper", ftp ());