Searched defs:__hash__ (Results 101 - 125 of 218) sorted by relevance

123456789

/prebuilts/python/linux-x86/2.7.5/lib/python2.7/
H A Dfractions.py508 def __hash__(self): member in class:Fraction
H A Dnumbers.py23 __hash__ = None variable in class:Number
H A Dsets.py319 # We inherit object.__hash__, so we must deny this explicitly
320 __hash__ = None variable in class:BaseSet
334 # not called __hash__ because a BaseSet should not be hashable;
392 def __hash__(self): member in class:ImmutableSet
556 def __hash__(self): member in class:_TemporarilyImmutableSet
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
H A Dmapping_tests.py570 def __hash__(self): member in class:TestHashMappingProtocol.test_getitem.BadEq
579 def __hash__(self): member in class:TestHashMappingProtocol.test_getitem.BadHash
607 def __hash__(self): member in class:TestHashMappingProtocol.test_pop.BadHash
657 def __hash__(self): member in class:TestHashMappingProtocol.test_le.BadCmp
676 def __hash__(self): member in class:TestHashMappingProtocol.test_setdefault.BadHash
H A Dseq_tests.py217 __hash__ = None # Can't meet hash invariant requirements variable in class:CommonTest.test_contains_fake.AllEq
H A Dtest_binop.py211 __hash__ = None variable in class:Rat
H A Dtest_class.py84 def __hash__(self, *args): member in class:AllTests
400 self.assertCallStack([('__hash__', (testme,))])
535 # no __hash__
608 def __hash__(self): member in class:ClassTests.testHashComparisonOfMethods.A
H A Dtest_coercion.py313 __hash__ = None # Invalid cmp makes this unhashable variable in class:CoercionTest.test_cmptypes.WackyComparer
H A Dtest_fractions.py53 __hash__ = None variable in class:DummyFloat
89 __hash__ = None variable in class:DummyRational
H A Dtest_hash.py53 _default_hash = object.__hash__
58 def __hash__(self): member in class:FixedHash
65 __hash__ = None variable in class:OnlyEquality
66 del OnlyEquality.__hash__
76 __hash__ = None variable in class:OnlyCmp
77 del OnlyCmp.__hash__
84 __hash__ = None variable in class:NoHash
141 _default_hash = object.__hash__
H A Dtest_richcmp.py51 __hash__ = None # Vectors cannot be hashed variable in class:Vector
262 # __hash__). Complex numbers are a fine example of that.
H A Dtest_sort.py73 __hash__ = None # Silence Py3k warning variable in class:TestBase.testStressfully.Stable
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/unittest/test/
H A Dtest_discovery.py109 __hash__ = None variable in class:TestDiscovery.test_find_tests_with_package.Module
/prebuilts/gdb/darwin-x86/lib/python2.7/
H A DUserString.py27 def __hash__(self): return hash(self.data) member in class:UserString
144 __hash__ method inherited from UserString. This would lead to
154 # We inherit object.__hash__, so we must deny this explicitly
155 __hash__ = None variable in class:MutableString
H A D_abcoll.py36 def __hash__(self): member in class:Hashable
44 if "__hash__" in B.__dict__:
45 if B.__dict__["__hash__"]:
50 if getattr(C, "__hash__", None):
226 __hash__ = None variable in class:Set
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
240 freedom for __eq__ or __hash__. We match the algorithm used
402 __hash__ = None variable in class:Mapping
H A Dmhlib.py806 def __hash__(self): member in class:IntSet
H A Duuid.py185 def __hash__(self): member in class:UUID
/prebuilts/gdb/darwin-x86/lib/python2.7/lib2to3/
H A Dpytree.py65 __hash__ = None # For Py3 compatibility. variable in class:Base
/prebuilts/gdb/darwin-x86/lib/python2.7/test/
H A Dtest_complex.py123 __hash__ = None variable in class:ComplexTest.test_no_implicit_coerce.A
H A Dtest_py3kwarn.py260 "Overriding __eq__ blocks inheritance of __hash__ in 3.x")
267 "Overriding __eq__ blocks inheritance of __hash__ in 3.x")
270 def __hash__(self): pass member in class:TestPy3KWarnings.test_hash_inheritance.NoWarningOnlyHash
276 def __hash__(self): pass member in class:TestPy3KWarnings.test_hash_inheritance.DefinesAllThree
285 "Overriding __eq__ blocks inheritance of __hash__ in 3.x")
292 "Overriding __eq__ blocks inheritance of __hash__ in 3.x")
295 def __hash__(self): pass member in class:TestPy3KWarnings.test_hash_inheritance.NoWarningOnlyHash
H A Dtest_weakset.py30 def __hash__(self): member in class:SomeClass
191 def __hash__(self): member in class:TestWeakSet.test_subclass_with_custom_hash.H
/prebuilts/gdb/linux-x86/lib/python2.7/
H A DUserString.py27 def __hash__(self): return hash(self.data) member in class:UserString
144 __hash__ method inherited from UserString. This would lead to
154 # We inherit object.__hash__, so we must deny this explicitly
155 __hash__ = None variable in class:MutableString
H A D_abcoll.py36 def __hash__(self): member in class:Hashable
44 if "__hash__" in B.__dict__:
45 if B.__dict__["__hash__"]:
50 if getattr(C, "__hash__", None):
226 __hash__ = None variable in class:Set
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
240 freedom for __eq__ or __hash__. We match the algorithm used
402 __hash__ = None variable in class:Mapping
H A Dmhlib.py806 def __hash__(self): member in class:IntSet
/prebuilts/gdb/linux-x86/lib/python2.7/lib2to3/
H A Dpytree.py65 __hash__ = None # For Py3 compatibility. variable in class:Base

Completed in 522 milliseconds

123456789