HomeSort by relevance Sort by last modified time
    Searched refs:fromkeys (Results 1 - 25 of 45) sorted by null

1 2

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_dict.py 208 self.assertEqual(dict.fromkeys('abc'), {'a':None, 'b':None, 'c':None})
210 self.assertIsNot(d.fromkeys('abc'), d)
211 self.assertEqual(d.fromkeys('abc'), {'a':None, 'b':None, 'c':None})
212 self.assertEqual(d.fromkeys((4,5),0), {4:0, 5:0})
213 self.assertEqual(d.fromkeys([]), {})
216 self.assertEqual(d.fromkeys(g()), {1:None})
217 self.assertRaises(TypeError, {}.fromkeys, 3)
219 self.assertEqual(dictlike.fromkeys('a'), {'a':None})
220 self.assertEqual(dictlike().fromkeys('a'), {'a':None})
221 self.assertIsInstance(dictlike.fromkeys('a'), dictlike
    [all...]
test_userdict.py 37 self.assertEqual(UserDict.UserDict.fromkeys('one two'.split()), d4)
38 self.assertEqual(UserDict.UserDict().fromkeys('one two'.split()), d4)
39 self.assertEqual(UserDict.UserDict.fromkeys('one two'.split(), 1), d5)
40 self.assertEqual(UserDict.UserDict().fromkeys('one two'.split(), 1), d5)
41 self.assertTrue(u1.fromkeys('one two'.split()) is not u1)
42 self.assertIsInstance(u1.fromkeys('one two'.split()), UserDict.UserDict)
43 self.assertIsInstance(u2.fromkeys('one two'.split()), UserDict.IterableUserDict)
244 def fromkeys(cls, keys, value=None): member in class:SeqDict
mapping_tests.py 440 self.assertEqual(self.type2test.fromkeys('abc'), {'a':None, 'b':None, 'c':None})
442 self.assertTrue(not(d.fromkeys('abc') is d))
443 self.assertEqual(d.fromkeys('abc'), {'a':None, 'b':None, 'c':None})
444 self.assertEqual(d.fromkeys((4,5),0), {4:0, 5:0})
445 self.assertEqual(d.fromkeys([]), {})
448 self.assertEqual(d.fromkeys(g()), {1:None})
449 self.assertRaises(TypeError, {}.fromkeys, 3)
451 self.assertEqual(dictlike.fromkeys('a'), {'a':None})
452 self.assertEqual(dictlike().fromkeys('a'), {'a':None})
453 self.assertTrue(dictlike.fromkeys('a').__class__ is dictlike
    [all...]
test_iterlen.py 133 d = dict.fromkeys(xrange(n))
140 d = dict.fromkeys(xrange(n))
147 d = dict.fromkeys(xrange(n))
test_set.py 47 self.d = dict.fromkeys(word)
78 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
107 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
127 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
153 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
180 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
314 d = dict.fromkeys(map(HashCountingInt, xrange(n)))
323 d2 = dict.fromkeys(set(d))
325 d3 = dict.fromkeys(frozenset(d))
327 d3 = dict.fromkeys(frozenset(d), 123
    [all...]
test_importhooks.py 93 self.namestoblock = dict.fromkeys(namestoblock)
test_weakset.py 51 self.d = dict.fromkeys(self.items)
88 for C in set, frozenset, dict.fromkeys, list, tuple:
110 for C in set, frozenset, dict.fromkeys, list, tuple:
test_collections.py 221 methodstubs = dict.fromkeys(names, lambda s, *args: 0)
649 self.assertRaises(NotImplementedError, Counter.fromkeys, 'abc')
752 self.assertEqual(counter_result, dict.fromkeys(set_result, 1))
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_dict.py 208 self.assertEqual(dict.fromkeys('abc'), {'a':None, 'b':None, 'c':None})
210 self.assertIsNot(d.fromkeys('abc'), d)
211 self.assertEqual(d.fromkeys('abc'), {'a':None, 'b':None, 'c':None})
212 self.assertEqual(d.fromkeys((4,5),0), {4:0, 5:0})
213 self.assertEqual(d.fromkeys([]), {})
216 self.assertEqual(d.fromkeys(g()), {1:None})
217 self.assertRaises(TypeError, {}.fromkeys, 3)
219 self.assertEqual(dictlike.fromkeys('a'), {'a':None})
220 self.assertEqual(dictlike().fromkeys('a'), {'a':None})
221 self.assertIsInstance(dictlike.fromkeys('a'), dictlike
    [all...]
test_userdict.py 37 self.assertEqual(UserDict.UserDict.fromkeys('one two'.split()), d4)
38 self.assertEqual(UserDict.UserDict().fromkeys('one two'.split()), d4)
39 self.assertEqual(UserDict.UserDict.fromkeys('one two'.split(), 1), d5)
40 self.assertEqual(UserDict.UserDict().fromkeys('one two'.split(), 1), d5)
41 self.assertTrue(u1.fromkeys('one two'.split()) is not u1)
42 self.assertIsInstance(u1.fromkeys('one two'.split()), UserDict.UserDict)
43 self.assertIsInstance(u2.fromkeys('one two'.split()), UserDict.IterableUserDict)
244 def fromkeys(cls, keys, value=None): member in class:SeqDict
mapping_tests.py 440 self.assertEqual(self.type2test.fromkeys('abc'), {'a':None, 'b':None, 'c':None})
442 self.assertTrue(not(d.fromkeys('abc') is d))
443 self.assertEqual(d.fromkeys('abc'), {'a':None, 'b':None, 'c':None})
444 self.assertEqual(d.fromkeys((4,5),0), {4:0, 5:0})
445 self.assertEqual(d.fromkeys([]), {})
448 self.assertEqual(d.fromkeys(g()), {1:None})
449 self.assertRaises(TypeError, {}.fromkeys, 3)
451 self.assertEqual(dictlike.fromkeys('a'), {'a':None})
452 self.assertEqual(dictlike().fromkeys('a'), {'a':None})
453 self.assertTrue(dictlike.fromkeys('a').__class__ is dictlike
    [all...]
test_iterlen.py 133 d = dict.fromkeys(xrange(n))
140 d = dict.fromkeys(xrange(n))
147 d = dict.fromkeys(xrange(n))
test_set.py 47 self.d = dict.fromkeys(word)
78 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
107 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
127 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
153 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
180 for C in set, frozenset, dict.fromkeys, str, unicode, list, tuple:
314 d = dict.fromkeys(map(HashCountingInt, xrange(n)))
323 d2 = dict.fromkeys(set(d))
325 d3 = dict.fromkeys(frozenset(d))
327 d3 = dict.fromkeys(frozenset(d), 123
    [all...]
test_importhooks.py 93 self.namestoblock = dict.fromkeys(namestoblock)
test_weakset.py 51 self.d = dict.fromkeys(self.items)
88 for C in set, frozenset, dict.fromkeys, list, tuple:
110 for C in set, frozenset, dict.fromkeys, list, tuple:
test_collections.py 221 methodstubs = dict.fromkeys(names, lambda s, *args: 0)
649 self.assertRaises(NotImplementedError, Counter.fromkeys, 'abc')
752 self.assertEqual(counter_result, dict.fromkeys(set_result, 1))
    [all...]
  /build/core/
checktree 97 have = dict().fromkeys(have, 1)
98 added = dict().fromkeys(added, 1)
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/
ordered_dict.py 85 def fromkeys(cls, iterable, value=None): member in class:OrderedDict
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/
data.py 161 (f, dict.fromkeys(linenos, None))
166 (f, dict.fromkeys(arcpairs, None))
  /external/chromium_org/third_party/simplejson/
ordered_dict.py 106 def fromkeys(cls, iterable, value=None): member in class:OrderedDict
  /external/chromium_org/tools/gyp/pylib/gyp/
ordered_dict.py 231 def fromkeys(cls, iterable, value=None): member in class:OrderedDict
232 '''OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
collections.py 192 def fromkeys(cls, iterable, value=None): member in class:OrderedDict
193 '''OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S.
489 def fromkeys(cls, iterable, v=None): member in class:Counter
493 'Counter.fromkeys() is undefined. Use Counter(iterable) instead.')
UserDict.py 73 def fromkeys(cls, iterable, value=None): member in class:UserDict
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
collections.py 192 def fromkeys(cls, iterable, value=None): member in class:OrderedDict
193 '''OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S.
489 def fromkeys(cls, iterable, v=None): member in class:Counter
493 'Counter.fromkeys() is undefined. Use Counter(iterable) instead.')
UserDict.py 73 def fromkeys(cls, iterable, value=None): member in class:UserDict

Completed in 671 milliseconds

1 2