Home
last modified time | relevance | path

Searched refs:lst (Results 1 – 25 of 36) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/crashers/
Dmutation_inside_cyclegc.py19 del lst[:]
25 lst = [str(i)] variable
30 while lst:
31 keepalive.append(lst[:])
Dborrowed_ref_2.py32 lst = [None] * 1000000 variable
37 lst[i] = c.g # consume the free list of instancemethod objects
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_index.py151 lst = list('ab!cdefghi!j')
152 del lst[self.o]
153 del lst[self.n]
154 lst[self.o] = 'X'
155 lst[self.n] = 'Y'
156 self.assertEqual(lst, list('abYdefghXj'))
158 lst = [5, 6, 7, 8, 9, 10, 11]
159 lst.__setitem__(self.n, "here")
160 self.assertEqual(lst, [5, 6, "here", 8, 9, 10, 11])
161 lst.__delitem__(self.n)
[all …]
Dtest_list.py55 lst = [4, 5, 6, 7]
56 n = int((sys.maxint*2+2) // len(lst))
59 self.assertRaises((MemoryError, OverflowError), mul, lst, n)
60 self.assertRaises((MemoryError, OverflowError), imul, lst, n)
Dtest_dircache.py64 lst = ['A', 'test2', 'test_nonexistent']
65 dircache.annotate(self.tempdir, lst)
66 self.assertEqual(lst, ['A/', 'test2', 'test_nonexistent'])
Dtest_operator.py7 def __init__(self, lst): argument
8 self.lst = lst
10 return len(self.lst)
12 return self.lst[i]
14 return self.lst + other.lst
16 return self.lst * other
18 return other * self.lst
21 def __init__(self, lst): argument
22 self.lst = lst
24 return len(self.lst)
[all …]
Dprofilee.py80 lst = []
81 lst.append(42) # 0
Dtest_pkg.py23 def fixdir(lst): argument
24 if "__builtins__" in lst:
25 lst.remove("__builtins__")
26 return lst
Dtest_marshal.py172 lst = self.d.items()
173 new = marshal.loads(marshal.dumps(lst))
174 self.assertEqual(lst, new)
175 marshal.dump(lst, file(test_support.TESTFN, "wb"))
177 self.assertEqual(lst, new)
Dtest_py3kwarn.py174 lst = range(5)
178 self.assertWarning(lst.sort(cmp=cmp), w, expected)
180 self.assertWarning(sorted(lst, cmp=cmp), w, expected)
182 self.assertWarning(lst.sort(cmp), w, expected)
184 self.assertWarning(sorted(lst, cmp), w, expected)
Dtest_bisect.py205 lst = List()
206 self.module.insort_left(lst, 10)
207 self.module.insort_right(lst, 5)
208 self.assertEqual([5, 10], lst.data)
Dtest_traceback.py117 lst = traceback.format_exception_only(e.__class__, e)
118 self.assertEqual(lst, ['KeyboardInterrupt\n'])
Dtest_scope.py308 def makeReturner(*lst): argument
310 return lst
Dtest_bytes.py272 for lst in [[b"abc"], [b"a", b"bc"], [b"ab", b"c"], [b"a", b"b", b"c"]]:
273 lst = list(map(self.type2test, lst))
274 self.assertEqual(self.type2test(b"").join(lst), b"abc")
275 self.assertEqual(self.type2test(b"").join(tuple(lst)), b"abc")
276 self.assertEqual(self.type2test(b"").join(iter(lst)), b"abc")
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/
Dtest_check_circular.py14 lst = []
15 lst.append(lst)
16 self.assertRaises(ValueError, self.dumps, lst)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/
Dtest_check_circular.py14 lst = []
15 lst.append(lst)
16 self.assertRaises(ValueError, self.dumps, lst)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/bgen/bgen/
DbgenGenerator.py191 fmt, lst = self.getargsFormatArgs(sep)
192 Output("if (!PyArg_ParseTuple(_args, \"%s\"%s))", fmt, lst)
204 lst = ""
213 lst = lst + sep + args
214 return fmt, lst
252 fmt, lst = self.mkvalueFormatArgs(sep)
257 Output("_res = Py_BuildValue(\"%s\"%s);", fmt, lst)
267 lst = ""
274 lst = lst + sep + arg.mkvalueArgs()
275 return fmt, lst
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Drfc822.py139 self.headers = lst = []
166 lst.append(line)
179 lst.append(line)
239 lst = []
247 lst.append(line)
248 return lst
258 lst = []
267 lst.append(line)
268 return lst
279 lst = self.getfirstmatchingheader(name)
[all …]
Dplistlib.py192 lst = []
197 lst.append(int(val))
198 return datetime.datetime(*lst)
DSimpleXMLRPCServer.py147 def remove_duplicates(lst): argument
155 for x in lst:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/
Dencoder.py282 def _iterencode_list(lst, _current_indent_level): argument
283 if not lst:
287 markerid = id(lst)
290 markers[markerid] = lst
301 for value in lst:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/
Dencoder.py288 def _iterencode_list(lst, _current_indent_level): argument
289 if not lst:
293 markerid = id(lst)
296 markers[markerid] = lst
307 for value in lst:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/
Dutil.py78 for lst in expected, actual:
81 lst.remove(item)
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlauxlib.c321 const char *const lst[]) { in luaL_checkoption() argument
325 for (i=0; lst[i]; i++) in luaL_checkoption()
326 if (strcmp(lst[i], name) == 0) in luaL_checkoption()
/device/linaro/bootloader/edk2/StdLib/Include/Lua/
Dlauxlib.h63 const char *const lst[]);

12