HomeSort by relevance Sort by last modified time
    Searched refs:Hashable (Results 1 - 17 of 17) sorted by null

  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
test_hash.py 14 from collections import Hashable
116 self.assertIsInstance(obj, Hashable)
120 self.assertNotIsInstance(obj, Hashable)
123 # Issue #4701: Check that some builtin types are correctly hashable
test_collections.py 12 from collections import Hashable, Iterable, Iterator
293 self.assertNotIsInstance(x, Hashable)
294 self.assertFalse(issubclass(type(x), Hashable), repr(type(x)))
303 self.assertIsInstance(x, Hashable)
304 self.assertTrue(issubclass(type(x), Hashable), repr(type(x)))
305 self.assertRaises(TypeError, Hashable)
307 class H(Hashable):
310 __eq__ = Hashable.__eq__ # Silence Py3k warning
313 self.validate_abstract_methods(Hashable, '__hash__')
314 self.validate_isinstance(Hashable, '__hash__'
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
test_hash.py 14 from collections import Hashable
116 self.assertIsInstance(obj, Hashable)
120 self.assertNotIsInstance(obj, Hashable)
123 # Issue #4701: Check that some builtin types are correctly hashable
test_collections.py 12 from collections import Hashable, Iterable, Iterator
293 self.assertNotIsInstance(x, Hashable)
294 self.assertFalse(issubclass(type(x), Hashable), repr(type(x)))
303 self.assertIsInstance(x, Hashable)
304 self.assertTrue(issubclass(type(x), Hashable), repr(type(x)))
305 self.assertRaises(TypeError, Hashable)
307 class H(Hashable):
310 __eq__ = Hashable.__eq__ # Silence Py3k warning
313 self.validate_abstract_methods(Hashable, '__hash__')
314 self.validate_isinstance(Hashable, '__hash__'
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_hash.py 14 from collections import Hashable
116 self.assertIsInstance(obj, Hashable)
120 self.assertNotIsInstance(obj, Hashable)
123 # Issue #4701: Check that some builtin types are correctly hashable
test_collections.py 12 from collections import Hashable, Iterable, Iterator
293 self.assertNotIsInstance(x, Hashable)
294 self.assertFalse(issubclass(type(x), Hashable), repr(type(x)))
303 self.assertIsInstance(x, Hashable)
304 self.assertTrue(issubclass(type(x), Hashable), repr(type(x)))
305 self.assertRaises(TypeError, Hashable)
307 class H(Hashable):
310 __eq__ = Hashable.__eq__ # Silence Py3k warning
313 self.validate_abstract_methods(Hashable, '__hash__')
314 self.validate_isinstance(Hashable, '__hash__'
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_hash.py 14 from collections import Hashable
116 self.assertIsInstance(obj, Hashable)
120 self.assertNotIsInstance(obj, Hashable)
123 # Issue #4701: Check that some builtin types are correctly hashable
test_collections.py 12 from collections import Hashable, Iterable, Iterator
293 self.assertNotIsInstance(x, Hashable)
294 self.assertFalse(issubclass(type(x), Hashable), repr(type(x)))
303 self.assertIsInstance(x, Hashable)
304 self.assertTrue(issubclass(type(x), Hashable), repr(type(x)))
305 self.assertRaises(TypeError, Hashable)
307 class H(Hashable):
310 __eq__ = Hashable.__eq__ # Silence Py3k warning
313 self.validate_abstract_methods(Hashable, '__hash__')
314 self.validate_isinstance(Hashable, '__hash__'
    [all...]
  /art/test/utils/python/testgen/
mixins.py 116 collections.abc.Hashable.register(NameComparableMixin)
  /prebuilts/gdb/darwin-x86/lib/python2.7/
_abcoll.py 14 __all__ = ["Hashable", "Iterable", "Iterator",
32 class Hashable:
41 if cls is Hashable:
225 # Sets are not hashable by default, but subclasses can change this
231 Note that we don't define __hash__: not all sets are hashable.
232 But if you define a hashable set type, its __hash__ should
401 # Mappings are not hashable by default, but subclasses can change this
  /prebuilts/gdb/linux-x86/lib/python2.7/
_abcoll.py 14 __all__ = ["Hashable", "Iterable", "Iterator",
32 class Hashable:
41 if cls is Hashable:
225 # Sets are not hashable by default, but subclasses can change this
231 Note that we don't define __hash__: not all sets are hashable.
232 But if you define a hashable set type, its __hash__ should
401 # Mappings are not hashable by default, but subclasses can change this
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
_abcoll.py 14 __all__ = ["Hashable", "Iterable", "Iterator",
32 class Hashable:
41 if cls is Hashable:
225 # Sets are not hashable by default, but subclasses can change this
231 Note that we don't define __hash__: not all sets are hashable.
232 But if you define a hashable set type, its __hash__ should
401 # Mappings are not hashable by default, but subclasses can change this
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
_abcoll.py 14 __all__ = ["Hashable", "Iterable", "Iterator",
32 class Hashable:
41 if cls is Hashable:
225 # Sets are not hashable by default, but subclasses can change this
231 Note that we don't define __hash__: not all sets are hashable.
232 But if you define a hashable set type, its __hash__ should
401 # Mappings are not hashable by default, but subclasses can change this
  /prebuilts/gdb/darwin-x86/lib/python2.7/pydoc_data/
topics.py     [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/pydoc_data/
topics.py     [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/pydoc_data/
topics.py     [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/pydoc_data/
topics.py     [all...]

Completed in 444 milliseconds