Searched refs:_PyHASH_INF (Results 1 - 7 of 7) sorted by relevance

/external/python/cpython3/Modules/_decimal/tests/
H A Dbignum.py14 _PyHASH_INF = sys.hash_info.inf variable
/external/python/cpython3/Include/
H A Dpyhash.h29 #define _PyHASH_INF 314159 macro
/external/python/cpython3/Lib/test/
H A Dtest_numeric_tower.py15 _PyHASH_INF = sys.hash_info.inf variable
119 self.assertEqual(hash(F(1, _PyHASH_MODULUS)), _PyHASH_INF)
120 self.assertEqual(hash(F(-1, 3*_PyHASH_MODULUS)), -_PyHASH_INF)
/external/python/cpython3/Python/
H A Dpyhash.c58 _PyHASH_INF for x >= 0, or -_PyHASH_INF for x < 0, instead.
59 _PyHASH_INF, -_PyHASH_INF and _PyHASH_NAN are also used for the
94 return v > 0 ? _PyHASH_INF : -_PyHASH_INF;
H A Dsysmodule.c845 PyLong_FromLong(_PyHASH_INF));
/external/python/cpython3/Lib/
H A Dfractions.py43 _PyHASH_INF = sys.hash_info.inf variable
561 hash_ = _PyHASH_INF
H A D_pydecimal.py994 return -_PyHASH_INF
996 return _PyHASH_INF
6444 _PyHASH_INF = sys.hash_info.inf variable

Completed in 787 milliseconds