comparison scripts/miscellaneous/python.m @ 19407:c61deba773ab

Add BIST test to perl() and python(). * perl.m, python.m: Reformat docstring to have a single line description of function first. Add BIST test.
author Rik <rik@octave.org>
date Sat, 04 Oct 2014 20:16:10 -0700
parents d63878346099
children cbce5d1bcaf9
comparison
equal deleted inserted replaced
19406:8cc4a9bb253b 19407:c61deba773ab
20 ## -*- texinfo -*- 20 ## -*- texinfo -*-
21 ## @deftypefn {Function File} {@var{output} =} python (@var{scriptfile}) 21 ## @deftypefn {Function File} {@var{output} =} python (@var{scriptfile})
22 ## @deftypefnx {Function File} {@var{output} =} python (@var{scriptfile}, @var{argument1}, @var{argument2}, @dots{}) 22 ## @deftypefnx {Function File} {@var{output} =} python (@var{scriptfile}, @var{argument1}, @var{argument2}, @dots{})
23 ## @deftypefnx {Function File} {[@var{output}, @var{status}] =} python (@dots{}) 23 ## @deftypefnx {Function File} {[@var{output}, @var{status}] =} python (@dots{})
24 ## Invoke Python script @var{scriptfile}, possibly with a list of command line 24 ## Invoke Python script @var{scriptfile}, possibly with a list of command line
25 ## arguments. Return output in @var{output} and optional status in 25 ## arguments.
26 ## @var{status}. If @var{scriptfile} is not an absolute file name it is 26 ##
27 ## is searched for in the current directory and then in the Octave loadpath. 27 ## Return output in @var{output} and optional status in @var{status}. If
28 ## @var{scriptfile} is not an absolute file name it is is searched for in the
29 ## current directory and then in the Octave loadpath.
28 ## @seealso{system, perl} 30 ## @seealso{system, perl}
29 ## @end deftypefn 31 ## @end deftypefn
30 32
31 ## Author: Carnë Draug <carandraug+dev@gmail.com> 33 ## Author: Carnë Draug <carandraug+dev@gmail.com>
32 34
46 error ("python: invalid arguments"); 48 error ("python: invalid arguments");
47 endif 49 endif
48 50
49 endfunction 51 endfunction
50 52
53
54 %!error <invalid arguments> python (123)
55