comparison @pyobject/display.m @ 380:b054a6833022

Merged in vikikrishna/pytave (pull request #47) pyobject.display: remove hash value and show class in display (fixes issue #71)
author Mike Miller <mike@mtmxr.com>
date Thu, 23 Mar 2017 17:35:43 +0000
parents c90d70aec553 24546b7021db
children 750a86973625
comparison
equal deleted inserted replaced
378:c90d70aec553 380:b054a6833022
44 loose = strcmp (spacing, "loose"); 44 loose = strcmp (spacing, "loose");
45 catch 45 catch
46 loose = ! __compactformat__ (); 46 loose = ! __compactformat__ ();
47 end_try_catch 47 end_try_catch
48 48
49 printf ("%s = [pyobject 0x%x]\n", inputname (1), id (x)); 49 printf ("%s = [Python object of type %s]\n", inputname (1), __py_class_name__ (x));
50 s = char (x); 50 s = char (x);
51 s = make_indented (s); 51 s = make_indented (s);
52 if (loose), printf ("\n"); endif 52 if (loose), printf ("\n"); endif
53 disp (s) 53 disp (s)
54 if (loose), printf ("\n"); endif 54 if (loose), printf ("\n"); endif