def _start(self): r""" Initialize the interface and start gap3. EXAMPLES:: sage: gap3 = Gap3() #optional - gap3 sage: gap3.is_running() False sage: gap3._start() #optional - gap3 sage: gap3.is_running() #optional - gap3 True Check that :trac:`23142` is fixed:: sage: gap3.eval("1+1") #optional - gap3 '2' sage: gap3.quit() #optional - gap3 """ Expect._start(self) # The -p command-line option to GAP3 produces the following # funny-looking patterns in the interface. We compile the patterns # now, and use them later for interpreting interface messages. self._compiled_full_pattern = self._expect.compile_pattern_list([ r'@p\d+\.', '@@', '@[A-Z]', r'@[123456!"#$%&][^+]*\+', '@e', '@c', '@f', '@h', '@i', '@m', '@n', '@r', r'@s\d', r'@w.*\+', '@x', '@z' ]) self._compiled_small_pattern = self._expect.compile_pattern_list('@J') self._expect.expect("@i")
def _start(self): r""" Initialize the interface and start gap3. EXAMPLES:: sage: gap3 = Gap3() #optional - gap3 sage: gap3.is_running() False sage: gap3._start() #optional - gap3 sage: gap3.is_running() #optional - gap3 True Check that :trac:`23142` is fixed:: sage: gap3.eval("1+1") #optional - gap3 '2' sage: gap3.quit() #optional - gap3 """ Expect._start(self) # The -p command-line option to GAP3 produces the following # funny-looking patterns in the interface. We compile the patterns # now, and use them later for interpreting interface messages. self._compiled_full_pattern = self._expect.compile_pattern_list([ '@p\d+\.','@@','@[A-Z]','@[123456!"#$%&][^+]*\+', '@e','@c', '@f','@h','@i','@m','@n','@r','@s\d','@w.*\+','@x','@z']) self._compiled_small_pattern = self._expect.compile_pattern_list('@J') self._expect.expect("@i")
def _start(self): """ Starts the Octave process. EXAMPLES:: sage: o = Octave() # optional - octave sage: o.is_running() # optional - octave False sage: o._start() # optional - octave sage: o.is_running() # optional - octave True """ Expect._start(self) self.eval("page_screen_output=0;") self.eval("format none;") # set random seed self.set_seed(self._seed)
def _start(self): r""" EXAMPLES:: sage: gap3 = Gap3() #optional - gap3 sage: gap3.is_running() False sage: gap3._start() #optional - gap3 sage: gap3.is_running() #optional - gap3 True sage: gap3.quit() #optional - gap3 """ n = self._session_number Expect._start(self) # The -p command-line option to GAP3 produces the following # funny-looking patterns in the interface. We compile the patterns # now, and use them later for interpreting interface messages. self._compiled_full_pattern = self._expect.compile_pattern_list([ '@p\d+\.','@@','@[A-Z]','@[123456!"#$%&][^+]*\+', '@e','@c', '@f','@h','@i','@m','@n','@r','@s\d','@w.*\+','@x','@z']) self._compiled_small_pattern = self._expect.compile_pattern_list('@J')
def _start(self): r""" EXAMPLES:: sage: gap3 = Gap3() #optional - gap3 sage: gap3.is_running() False sage: gap3._start() #optional - gap3 sage: gap3.is_running() #optional - gap3 True sage: gap3.quit() #optional - gap3 """ n = self._session_number Expect._start(self) # The -p command-line option to GAP3 produces the following # funny-looking patterns in the interface. We compile the patterns # now, and use them later for interpreting interface messages. self._compiled_full_pattern = self._expect.compile_pattern_list( [ "@p\d+\.", "@@", "@[A-Z]", '@[123456!"#$%&][^+]*\+', "@e", "@c", "@f", "@h", "@i", "@m", "@n", "@r", "@s\d", "@w.*\+", "@x", "@z", ] ) self._compiled_small_pattern = self._expect.compile_pattern_list("@J")
def _start(self, *args, **kwds): Expect._start(self, *args, **kwds)