(self, expt)
return self
Raise to int power in-place.
Raise to int power in-place.
Raise to int power in - place .
def _ipow_int(self, expt):
        """Raise to int power in-place."""
        # exponentiation by squares
        if expt < 0:
            self._ipow_int(-expt)
            self = self.new().from_bytes(self._one).idiv(self)
        elif expt > 1:
            if (expt % 2) == 0:
                self._ipow_int(expt // 2)
                self.imul(self)
            else:
                base = self.clone()
                self._ipow_int((expt-1) // 2)
                self.imul(self)
                self.imul(base)
        elif expt == 0:
            self = self.from_bytes(self._one)
        return self
def _ipow_int ( self , expt ) : # exponentiation by squares if expt < 0 : self . _ipow_int ( - expt ) self = self . new ( ) . from_bytes ( self . _one ) . idiv ( self ) elif expt > 1 : if ( expt % 2 ) == 0 : self . _ipow_int ( expt // 2 ) self . imul ( self ) else : base = self . clone ( ) self . _ipow_int ( ( expt - 1 ) // 2 ) self . imul ( self ) self . imul ( base ) elif expt == 0 : self = self . from_bytes ( self . _one ) return self