Searched refs:a_list (Results 1 – 9 of 9) sorted by relevance
/external/python/uritemplates/tests/ |
D | test_uritemplate.py | 593 a_list = [(1, 2), (3, 4)] 594 self.assertEqual(variable.is_list_of_tuples(a_list), (True, a_list)) 596 a_list = [1, 2, 3, 4] 597 self.assertEqual(variable.is_list_of_tuples(a_list), (False, None)) 600 a_list = [1, 2, 3, 4] 601 self.assertEqual(variable.list_test(a_list), True) 603 a_list = str([1, 2, 3, 4]) 604 self.assertEqual(variable.list_test(a_list), False) 607 a_list = [(1, 2), (3, 4)] 608 self.assertEqual(variable.dict_test(a_list), False) [all …]
|
/external/python/pybind11/tests/ |
D | test_sequences_and_iterators.py | 12 def allclose(a_list, b_list, rel_tol=1e-05, abs_tol=0.0): argument 14 isclose(a, b, rel_tol=rel_tol, abs_tol=abs_tol) for a, b in zip(a_list, b_list)
|
/external/starlark-go/starlark/testdata/ |
D | list.star | 141 a_list = [] 144 a_list += [1] # binding use => a_list is a local var 146 assert.fails(f4, "local variable a_list referenced before assignment")
|
/external/python/cpython3/Lib/ |
D | traceback.py | 370 def from_list(klass, a_list): argument 380 for frame in a_list:
|
/external/tensorflow/tensorflow/python/framework/ |
D | test_util.py | 2848 a_list = [] 2852 for out_list, flat_arr in [(a_list, a.flat), (b_list, b.flat)]: 2858 a = np.array(a_list) 3151 a_list = self._GetPyList(a) 3153 self.assertEqual(a_list, b_list, msg) 3161 a_list = self._GetPyList(a) 3163 self._assertListCloseRecursive(a_list, b_list, rtol, atol, msg)
|
/external/python/cpython3/Doc/faq/ |
D | programming.rst | 478 operators. For example, ``+=`` mutates lists but not tuples or ints (``a_list 479 += [1, 2, 3]`` is equivalent to ``a_list.extend([1, 2, 3])`` and mutates 480 ``a_list``, whereas ``some_tuple += (1, 2, 3)`` and ``some_int += 1`` create 1317 >>> a_list = [] 1318 >>> a_list += [1] 1319 >>> a_list 1324 >>> result = a_list.__iadd__([1]) 1325 >>> a_list = result 1327 The object pointed to by a_list has been mutated, and the pointer to the 1328 mutated object is assigned back to ``a_list``. The end result of the [all …]
|
/external/python/cpython2/Doc/faq/ |
D | programming.rst | 644 operators. For example, ``+=`` mutates lists but not tuples or ints (``a_list 645 += [1, 2, 3]`` is equivalent to ``a_list.extend([1, 2, 3])`` and mutates 646 ``a_list``, whereas ``some_tuple += (1, 2, 3)`` and ``some_int += 1`` create 1398 >>> a_list = [] 1399 >>> a_list += [1] 1400 >>> a_list 1405 >>> result = a_list.__iadd__([1]) 1406 >>> a_list = result 1408 The object pointed to by a_list has been mutated, and the pointer to the 1409 mutated object is assigned back to ``a_list``. The end result of the [all …]
|
/external/python/apitools/apitools/base/protorpclite/ |
D | messages_test.py | 386 a_list = [1, 3, 6] 387 field_list = messages.FieldList(self.integer_field, a_list) 388 self.assertFalse(a_list is field_list)
|
/external/python/cpython3/Doc/library/ |
D | traceback.rst | 300 .. classmethod:: from_list(a_list)
|