def quit(self, verbose=False, timeout=0.25): """ EXAMPLES:: sage: a = gp('10'); a 10 sage: gp.quit() sage: a (invalid object -- defined in terms of closed session) sage: gp(pi) 3.1415926535897932384626433832795028842 # 64-bit 3.141592653589793238462643383 # 32-bit """ self.__var_store_len = 0 Expect.quit(self, verbose=verbose, timeout=timeout)
def quit(self, verbose=False, timeout=0.25): """ Terminate the GP process. EXAMPLES:: sage: a = gp('10'); a 10 sage: gp.quit() sage: a <repr(<sage.interfaces.gp.GpElement at 0x...>) failed: ValueError: The pari session in which this object was defined is no longer running.> sage: gp(pi) 3.1415926535897932384626433832795028842 # 64-bit 3.141592653589793238462643383 # 32-bit """ self.__var_store_len = 0 Expect.quit(self, verbose=verbose, timeout=timeout)
def quit(self, verbose=False, timeout=0.25): """ Terminate the GP process. EXAMPLES:: sage: a = gp('10'); a 10 sage: gp.quit() sage: a Traceback (most recent call last): ... ValueError: The pari session in which this object was defined is no longer running. sage: gp(pi) 3.1415926535897932384626433832795028842 # 64-bit 3.141592653589793238462643383 # 32-bit """ self.__var_store_len = 0 Expect.quit(self, verbose=verbose, timeout=timeout)