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

  /external/python/cpython3/Modules/_decimal/tests/
bignum.py 12 _PyHASH_MODULUS = sys.hash_info.modulus
14 _PyHASH_INF = sys.hash_info.inf
15 _PyHASH_NAN = sys.hash_info.nan
  /external/python/cpython3/Lib/test/
test_sys.py 430 self.assertEqual(len(sys.hash_info), 9)
431 self.assertLess(sys.hash_info.modulus, 2**sys.hash_info.width)
432 # sys.hash_info.modulus should be a prime; we do a quick
437 pow(x, sys.hash_info.modulus-1, sys.hash_info.modulus),
439 "sys.hash_info.modulus {} is a non-prime".format(
440 sys.hash_info.modulus)
442 self.assertIsInstance(sys.hash_info.inf, int)
443 self.assertIsInstance(sys.hash_info.nan, int
    [all...]
test_hash.py 45 ok = sys.hash_info.algorithm in {"fnv", "siphash24"}
242 if length < sys.hash_info.cutoff:
245 algorithm = sys.hash_info.algorithm
test_numeric_tower.py 14 _PyHASH_MODULUS = sys.hash_info.modulus
15 _PyHASH_INF = sys.hash_info.inf
test_fractions.py 581 hmod = sys.hash_info.modulus
582 hinf = sys.hash_info.inf
  /external/python/cpython3/Python/
sysmodule.c 942 "hash_info\n\
963 "sys.hash_info",
972 PyObject *hash_info; local
975 hash_info = PyStructSequence_New(&Hash_InfoType);
976 if (hash_info == NULL)
979 PyStructSequence_SET_ITEM(hash_info, field++,
981 PyStructSequence_SET_ITEM(hash_info, field++,
983 PyStructSequence_SET_ITEM(hash_info, field++,
985 PyStructSequence_SET_ITEM(hash_info, field++,
987 PyStructSequence_SET_ITEM(hash_info, field++
    [all...]
  /external/python/cpython3/Lib/
fractions.py 40 _PyHASH_MODULUS = sys.hash_info.modulus
43 _PyHASH_INF = sys.hash_info.inf
_pydecimal.py     [all...]

Completed in 423 milliseconds