Home
last modified time | relevance | path

Searched refs:readline (Results 1 – 25 of 786) sorted by relevance

12345678910>>...32

/external/python/cpython3/Lib/test/
Dtest_readline.py17 readline = import_module('readline') variable
19 if hasattr(readline, "_READLINE_LIBRARY_VERSION"):
20 is_editline = ("EditLine wrapper" in readline._READLINE_LIBRARY_VERSION)
22 is_editline = (readline.__doc__ and "libedit" in readline.__doc__)
29 if hasattr(readline, "_READLINE_VERSION"):
32 if hasattr(readline, "_READLINE_LIBRARY_VERSION"):
37 @unittest.skipUnless(hasattr(readline, "clear_history"),
48 readline.clear_history()
50 readline.add_history("first line")
51 readline.add_history("second line")
[all …]
Dtest_fileinput.py63 def readline(self, size=None): member in LineReader
72 line = self.readline()
117 s = fi.readline()
127 self.assertEqual(fi.readline(), 'Line 1 of file 3\n')
191 line = fi.readline()
197 line = fi.readline()
293 fi.readline()
308 self.assertEqual(fi.readline(), 'A\n')
309 self.assertEqual(fi.readline(), 'B\n')
310 self.assertEqual(fi.readline(), 'C\n')
[all …]
/external/python/cpython2/Lib/test/
Dtest_readline.py10 readline = import_module('readline') variable
18 @unittest.skipUnless(hasattr(readline, "clear_history"),
22 readline.clear_history()
24 readline.add_history("first line")
25 readline.add_history("second line")
27 self.assertEqual(readline.get_history_item(0), None)
28 self.assertEqual(readline.get_history_item(1), "first line")
29 self.assertEqual(readline.get_history_item(2), "second line")
31 readline.replace_history_item(0, "replaced line")
32 self.assertEqual(readline.get_history_item(0), None)
[all …]
Dtest_fileinput.py47 def readline(self, size=None): member in LineReader
56 line = self.readline()
100 s = fi.readline()
110 self.assertEqual(fi.readline(), 'Line 1 of file 3\n')
166 line = fi.readline()
172 line = fi.readline()
270 self.assertEqual(fi.readline(), u'A\n')
271 self.assertEqual(fi.readline(), u'B\r\n')
272 self.assertEqual(fi.readline(), u'C\r')
282 self.assertEqual(fi.readline(), 'line1\n')
[all …]
/external/python/cpython2/Doc/library/
Drlcompleter.rst1 :mod:`rlcompleter` --- Completion function for GNU readline
5 :synopsis: Python identifier completion, suitable for the GNU readline library.
13 :mod:`readline` module by completing valid Python identifiers and keywords.
15 When this module is imported on a Unix platform with the :mod:`readline` module
17 and its :meth:`complete` method is set as the :mod:`readline` completer.
22 >>> import readline
23 >>> readline.parse_and_bind("tab: complete")
24 >>> readline. <TAB PRESSED>
25 readline.__doc__ readline.get_line_buffer( readline.read_init_file(
26 readline.__file__ readline.insert_text( readline.set_completer(
[all …]
Dreadline.rst1 :mod:`readline` --- GNU readline interface
4 .. module:: readline
6 :synopsis: GNU readline support for Python.
10 The :mod:`readline` module defines a number of functions to facilitate
21 the ``libedit`` library instead of GNU readline.
22 On MacOS X the :mod:`readline` module detects which library is being used
26 of GNU readline. If you programmatically load configuration strings
27 you can check for the text "libedit" in :const:`readline.__doc__`
28 to differentiate between GNU readline and libedit.
32 <https://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html#SEC9>`_
[all …]
/external/python/cpython3/Doc/library/
Drlcompleter.rst1 :mod:`rlcompleter` --- Completion function for GNU readline
5 :synopsis: Python identifier completion, suitable for the GNU readline library.
14 :mod:`readline` module by completing valid Python identifiers and keywords.
16 When this module is imported on a Unix platform with the :mod:`readline` module
18 and its :meth:`complete` method is set as the :mod:`readline` completer.
23 >>> import readline
24 >>> readline.parse_and_bind("tab: complete")
25 >>> readline. <TAB PRESSED>
26 readline.__doc__ readline.get_line_buffer( readline.read_init_file(
27 readline.__file__ readline.insert_text( readline.set_completer(
[all …]
Dreadline.rst1 :mod:`readline` --- GNU readline interface
4 .. module:: readline
6 :synopsis: GNU readline support for Python.
12 The :mod:`readline` module defines a number of functions to facilitate
22 <https://cnswww.cns.cwru.edu/php/chet/readline/rluserman.html#SEC9>`_
30 the ``libedit`` library instead of GNU readline.
31 On macOS the :mod:`readline` module detects which library is being used
35 of GNU readline. If you programmatically load configuration strings
36 you can check for the text "libedit" in :const:`readline.__doc__`
37 to differentiate between GNU readline and libedit.
[all …]
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Domains/
DtDomain_creation_deletion.py99 line=f_Domains_Backup.readline()
101 line=f_Domains_Backup.readline()
126 line=f_Domains.readline()
128 line=f_Domains.readline()
136 domain_backup_name = f_Domains_Backup.readline().strip('\r\n'),
137 domain_name = f_Domains.readline().strip('\r\n'),
177 line=f_Domains_Backup.readline()
179 line=f_Domains_Backup.readline()
204 line=f_Domains.readline()
206 line=f_Domains.readline()
[all …]
DtDomain_Elements.py93 line=f_DomainElements_Backup.readline()
95 line=f_DomainElements_Backup.readline()
127 line=f_DomainElements.readline()
129 line=f_DomainElements.readline()
139 element_name = f_DomainElements.readline().strip('\r\n')
140 element_name_backup = f_DomainElements_Backup.readline().strip('\r\n')
144 element_name = f_DomainElements.readline().strip('\r\n')
186 line=f_DomainElements_Backup.readline()
188 line=f_DomainElements_Backup.readline()
214 line=f_DomainElements.readline()
[all …]
DtDomain_rename.py101 line=f_init_domains.readline()
103 line=f_init_domains.readline()
136 domain_renamed = f_domains.readline().strip('\n')
139 f_domains.readline()
190 line=f_init_domains.readline()
192 line=f_init_domains.readline()
221 domain_name = f_domains.readline().strip('\n')
222 domain_backup_name = f_init_domains.readline().strip('\n')
253 domain_name = f_domains.readline().strip('\n')
254 domain_backup_name = f_init_domains.readline().strip('\n')
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_run.py59 def readline(self): member in MockShell
118 self.assertEqual(f.readline(), 'one\n')
119 self.assertEqual(f.readline(-1), 'two\n')
120 self.assertEqual(f.readline(None), 'three\n')
122 self.assertEqual(f.readline(), 'one\n')
123 self.assertEqual(f.readline(), 'two\n')
125 self.assertEqual(f.readline(), 'one')
126 self.assertEqual(f.readline(), 'two')
128 self.assertEqual(f.readline(2), 'on')
129 self.assertEqual(f.readline(1), 'e')
[all …]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestwith.py209 line1 = h.readline()
210 line2 = h.readline()
211 line3 = h.readline()
215 self.assertEqual(h.readline(), '')
221 result = h.readline()
223 self.assertEqual(h.readline(), '')
235 self.assertEqual(h.readline(), '')
268 line1 = f.readline()
269 line2 = f.readline()
270 line3 = f.readline()
[all …]
/external/python/apitools/apitools/base/py/
Dbase_cli.py25 import readline
99 if ('(' in readline.get_line_buffer() or
105 if not readline.get_line_buffer().strip():
120 'readline': readline,
124 readline.parse_and_bind('tab: complete')
125 readline.set_completer(_SmartCompleter(new_locals).complete)
129 readline.read_history_file(histfile)
130 atexit.register(lambda: readline.write_history_file(histfile))
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_io.py37 def readline(self): member in MockShell
72 self.assertRaises(IOError, f.readline, 0)
209 self.assertEqual(f.readline(), 'one\n')
210 self.assertEqual(f.readline(-1), 'two\n')
211 self.assertEqual(f.readline(None), 'three\n')
213 self.assertEqual(f.readline(), 'one\n')
214 self.assertEqual(f.readline(), 'two\n')
216 self.assertEqual(f.readline(), 'one')
217 self.assertEqual(f.readline(), 'two')
219 self.assertEqual(f.readline(2), 'on')
[all …]
/external/tensorflow/tensorflow/python/debug/examples/
Dexamples_test.sh64 cat << EOF | ${DEBUG_FIBONACCI_BIN} --tensor_size=2 --ui_type=readline
69 cat << EOF | ${DEBUG_ERRORS_BIN} --error=no_error --ui_type=readline
74 cat << EOF | ${DEBUG_ERRORS_BIN} --error=uninitialized_variable --debug --ui_type=readline
80 cat << EOF | ${DEBUG_MNIST_BIN} --debug --max_steps=1 --fake_data --ui_type=readline
90 …_IRIS_BIN} --debug --fake_data --train_steps=2 --dump_root="${CUSTOM_DUMP_ROOT}" --ui_type=readline
102 cat << EOF | ${DEBUG_KERAS_BIN} --debug --ui_type=readline
/external/mesa3d/bin/
Dperf-annotate-jit.py64 def readline(self): member in LineParser
65 line = self._file.readline()
80 self.readline()
107 while stream.readline() != desiredFunction + ':\n':
111 line = stream.readline().strip()
116 line = stream.readline().strip()
138 def readline(self): member in PerfParser
141 LineParser.readline(self)
147 self.readline()
/external/python/mock/mock/tests/
Dtestwith.py199 line1 = h.readline()
200 line2 = h.readline()
201 line3 = h.readline()
210 result = h.readline()
244 line1 = f.readline()
245 line2 = f.readline()
246 line3 = f.readline()
274 line1 = h.readline()
282 line1 = h.readline()
293 handle.readline.return_value = 'bar'
[all …]
/external/python/cpython2/Lib/
Dcmd.py112 import readline
113 self.old_completer = readline.get_completer()
114 readline.set_completer(self.complete)
115 readline.parse_and_bind(self.completekey+": complete")
136 line = self.stdin.readline()
148 import readline
149 readline.set_completer(self.old_completer)
262 import readline
263 origline = readline.get_line_buffer()
266 begidx = readline.get_begidx() - stripped
[all …]
Dmimify.py56 def readline(self): member in File
59 line = self.file.readline()
76 def readline(self): member in HeaderFile
81 line = self.file.readline()
87 self.peek = self.file.readline()
136 line = hfile.readline()
165 line = ifile.readline()
196 newline = ifile.readline()
293 line = hfile.readline()
316 line = ifile.readline()
[all …]
/external/python/cpython3/Lib/
Dcmd.py108 import readline
109 self.old_completer = readline.get_completer()
110 readline.set_completer(self.complete)
111 readline.parse_and_bind(self.completekey+": complete")
132 line = self.stdin.readline()
144 import readline
145 readline.set_completer(self.old_completer)
258 import readline
259 origline = readline.get_line_buffer()
262 begidx = readline.get_begidx() - stripped
[all …]
/external/pcre/dist2/cmake/
DFindReadline.cmake9 FIND_PATH(READLINE_INCLUDE_DIR readline/readline.h
10 /usr/include/readline
15 # FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
24 FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
/external/python/cpython2/Demo/pdist/
Dmakechangelog.py77 line = f.readline()
83 line = f.readline()
94 revline = f.readline()
95 dateline = f.readline()
98 line = f.readline()
/external/tensorflow/tensorflow/python/debug/cli/
Dreadline_ui.py20 import readline
36 readline.parse_and_bind("set editing-mode emacs")
40 readline.set_completer_delims("\n")
41 readline.set_completer(self._readline_complete)
42 readline.parse_and_bind("tab: complete")
/external/libvpx/libvpx/tools/non_greedy_mv/
Dnon_greedy_mv.py47 line = fp.readline()
53 line = fp.readline()
88 line = fp.readline()
96 line = fp.readline()
107 line = fp.readline()
118 line = fp.readline()
127 line = fp.readline()
134 line = fp.readline()

12345678910>>...32