parameters: (self, n)
return_statement: return s
docstring: Return bitstring with bits shifted by n to the right.
  
          n -- the number of bits to shift. Must be >= 0.
docstring_summary: Return bitstring with bits shifted by n to the right.
docstring_tokens: Return bitstring with bits shifted by n to the right .
function: def __rshift__(self, n):
          """Return bitstring with bits shifted by n to the right.
  
          n -- the number of bits to shift. Must be >= 0.
  
          """
          if n < 0:
              raise ValueError("Cannot shift by a negative amount.")
          if not self.len:
              raise ValueError("Cannot shift an empty bitstring.")
          if not n:
              return self._copy()
          s = self.__class__(length=min(n, self.len))
          s._append(self[:-n])
          return s
function_tokens: def __rshift__ ( self , n ) : if n < 0 : raise ValueError ( "Cannot shift by a negative amount." ) if not self . len : raise ValueError ( "Cannot shift an empty bitstring." ) if not n : return self . _copy ( ) s = self . __class__ ( length = min ( n , self . len ) ) s . _append ( self [ : - n ] ) return s