Nope, this is actually bit masking, not a boolean operation !

The GED result must be masked, that's why it's done this way.

Cheers,
Csaba

On Sa, 2014-03-08 at 16:24 -0800, Bryan Bishop wrote:
> In brlcad/ged.py:
> 
> > +        global _GED_INSTANCE
> > +        _GED_INSTANCE = self.old_ged_instance
> > +        self.close()
> > +
> > +    def execute_command(self, ged_function, *args, **kwargs):
> > +        args = list(args)
> > +        command_name = kwargs.get("command_name", ged_function.__name__)
> > +        args.insert(0, command_name)
> > +        if readline:
> > +            history_index = readline.get_current_history_length()
> > +        while True:
> > +            cmd_args = cta.ctypes_string_array(args)
> > +            result = ged_function(self._ged_pointer, len(cmd_args), cmd_args)
> > +            # if result != libged.GED_OK:
> > +            #     print "Result: <", result, ">"
> > +            if not (result & libged.GED_MORE):
> 
> Very minor nitpick: in python you can use and.
> 
> —
> Reply to this email directly or view it on GitHub.
>