diff @pyobject/display.m @ 280:3bf799e80ca5

pyobject: add char conversion method, refactor disp and display to use char * @pyobject/pyobject.m (@pyobject/char): New method. (@pyobject/disp): Use it. * @pyobject/display.m: Use char directly instead of disp.
author Mike Miller <mtmiller@octave.org>
date Fri, 29 Jul 2016 20:15:39 -0700
parents 4acc64f89d67
children b0677c492655
line wrap: on
line diff
--- a/@pyobject/display.m	Fri Jul 29 15:15:23 2016 -0700
+++ b/@pyobject/display.m	Fri Jul 29 20:15:39 2016 -0700
@@ -33,7 +33,7 @@
 ## @end group
 ## @end example
 ##
-## @seealso{@@pyobject/disp}
+## @seealso{@@pyobject/char, @@pyobject/disp}
 ## @end defmethod
 
 
@@ -42,7 +42,7 @@
   loose = ! __compactformat__ ();
 
   printf ("%s = [pyobject %s]\n", inputname (1), getid (x));
-  s = disp (x);
+  s = char (x);
   s = make_indented (s);
   if (loose), printf ("\n"); endif
   disp (s)