changeset 248:2e4c9ce0c83c

maint: prefer Octave lowercase naming convention to camelCase * pycall.cc, @pyobject/subsref.m: Name function variable "is_none" instead of "isNone" for consistency.
author Mike Miller <mtmiller@octave.org>
date Wed, 27 Jul 2016 17:42:22 -0700
parents c3addc52dfcd
children b1f874a68e0f
files @pyobject/subsref.m pycall.cc
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/@pyobject/subsref.m	Wed Jul 27 17:20:01 2016 -0700
+++ b/@pyobject/subsref.m	Wed Jul 27 17:42:22 2016 -0700
@@ -74,8 +74,8 @@
   endif
 
   ## unpack results, ensure "ans" works (see also pycall)
-  isNone = pyeval ("lambda x: x is None");
-  if (nargout > 0 || ! pycall (isNone, r))
+  is_none = pyeval ("lambda x: x is None");
+  if (nargout > 0 || ! pycall (is_none, r))
     varargout{1} = r;
   endif
 endfunction
--- a/pycall.cc	Wed Jul 27 17:20:01 2016 -0700
+++ b/pycall.cc	Wed Jul 27 17:42:22 2016 -0700
@@ -303,8 +303,8 @@
 %!test
 %! f = pyeval ("lambda: None");
 %! r = pycall (f);
-%! isNone = pyeval("lambda a: a is None");
-%! assert (isNone (r))
+%! is_none = pyeval ("lambda x: x is None");
+%! assert (is_none (r))
 
 ## But returning None will not set "ans"
 %!test