/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_hash.py | 8 from collections import Hashable
108 self.assertIsInstance(obj, Hashable)
112 self.assertNotIsInstance(obj, Hashable)
115 # 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...] |
/external/python/cpython2/Lib/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 | 16 from collections import Hashable, Iterable, Iterator 341 self.assertNotIsInstance(x, Hashable) 342 self.assertFalse(issubclass(type(x), Hashable), repr(type(x))) 351 self.assertIsInstance(x, Hashable) 352 self.assertTrue(issubclass(type(x), Hashable), repr(type(x))) 353 self.assertRaises(TypeError, Hashable) 355 class H(Hashable): 358 __eq__ = Hashable.__eq__ # Silence Py3k warning 361 self.validate_abstract_methods(Hashable, '__hash__') 362 self.validate_isinstance(Hashable, '__hash__' [all...] |
/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)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
_abcoll.py | 14 __all__ = ["Hashable", "Iterable", "Iterator",
32 class Hashable:
41 if cls is Hashable:
244 # Sets are not hashable by default, but subclasses can change this
250 Note that we don't define __hash__: not all sets are hashable.
251 But if you define a hashable set type, its __hash__ should
420 # Mappings are not hashable by default, but subclasses can change this
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
_abcoll.py | 14 __all__ = ["Hashable", "Iterable", "Iterator",
32 class Hashable:
41 if cls is Hashable:
223 # Sets are not hashable by default, but subclasses can change this
229 Note that we don't define __hash__: not all sets are hashable.
230 But if you define a hashable set type, its __hash__ should
374 # Mappings are not hashable by default, but subclasses can change this
|
/external/python/cpython2/Lib/ |
_abcoll.py | 14 __all__ = ["Hashable", "Iterable", "Iterator", 32 class Hashable: 41 if cls is Hashable: 244 # Sets are not hashable by default, but subclasses can change this 250 Note that we don't define __hash__: not all sets are hashable. 251 But if you define a hashable set type, its __hash__ should 420 # Mappings are not hashable by default, but subclasses can change this
|
/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
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/pydoc_data/ |
topics.py | [all...] |
/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...] |