(cls, arg_sequence, call_cls=None)
Generator filtering args
Generator filtering args
Generator filtering args
def _new_args_filter(cls, arg_sequence, call_cls=None):
        """Generator filtering args"""
        cls = call_cls or cls
        for arg in arg_sequence:
            if arg == cls.zero:
                raise ShortCircuit(arg)
            elif arg == cls.identity:
                continue
            elif arg.func == cls:
                for x in arg.iter_basic_args():
                    yield x
            else:
                yield arg
def _new_args_filter ( cls , arg_sequence , call_cls = None ) : cls = call_cls or cls for arg in arg_sequence : if arg == cls . zero : raise ShortCircuit ( arg ) elif arg == cls . identity : continue elif arg . func == cls : for x in arg . iter_basic_args ( ) : yield x else : yield arg