# HG changeset patch # User Colin Macdonald # Date 1470121602 25200 # Node ID 06a4b461b1414786a6137d7413bf9fa6b888b947 # Parent 6c133bcac33a51b43aa53ef684424edbec40b105 pyobject: hide methods which start with underscore (fixes issue #23) * @pyobject/methods.m: Hide methods. diff -r 6c133bcac33a -r 06a4b461b141 @pyobject/methods.m --- a/@pyobject/methods.m Tue Aug 02 00:03:51 2016 -0700 +++ b/@pyobject/methods.m Tue Aug 02 00:06:42 2016 -0700 @@ -69,7 +69,7 @@ # filter the output of `dir(x)` to get callable methods only cmd = pyeval (["lambda x: [a for a in dir(x)" ... - " if callable(getattr(x, a)) and not a.startswith('__')]"]); + " if callable(getattr(x, a)) and not a.startswith('_')]"]); # FIXME: may need to convert from Python list to Octave cell array mtds_list = pycall (cmd, x)