parameters: (self, other, context=None)
return_statement: return _dec_from_triple(0, result.lstrip('0') or '0', 0)
docstring: Applies an 'and' operation between self and other's digits.
docstring_summary: Applies an 'and' operation between self and other's digits.
docstring_tokens: Applies an and operation between self and other s digits .
function: def logical_and(self, other, context=None):
          """Applies an 'and' operation between self and other's digits."""
          if context is None:
              context = getcontext()
  
          other = _convert_other(other, raiseit=True)
  
          if not self._islogical() or not other._islogical():
              return context._raise_error(InvalidOperation)
  
          # fill to context.prec
          (opa, opb) = self._fill_logical(context, self._int, other._int)
  
          # make the operation, and clean starting zeroes
          result = "".join([str(int(a)&int(b)) for a,b in zip(opa,opb)])
          return _dec_from_triple(0, result.lstrip('0') or '0', 0)
function_tokens: def logical_and ( self , other , context = None ) : if context is None : context = getcontext ( ) other = _convert_other ( other , raiseit = True ) if not self . _islogical ( ) or not other . _islogical ( ) : return context . _raise_error ( InvalidOperation ) # fill to context.prec ( opa , opb ) = self . _fill_logical ( context , self . _int , other . _int ) # make the operation, and clean starting zeroes result = "" . join ( [ str ( int ( a ) & int ( b ) ) for a , b in zip ( opa , opb ) ] ) return _dec_from_triple ( 0 , result . lstrip ( '0' ) or '0' , 0 )