mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
This commit is contained in:
parent
4af4d273bd
commit
9594942716
40 changed files with 137 additions and 150 deletions
|
@ -633,7 +633,7 @@ class SystemRandom(Random):
|
|||
return (int.from_bytes(_urandom(7), 'big') >> 3) * RECIP_BPF
|
||||
|
||||
def getrandbits(self, k):
|
||||
"""getrandbits(k) -> x. Generates a long int with k random bits."""
|
||||
"""getrandbits(k) -> x. Generates an int with k random bits."""
|
||||
if k <= 0:
|
||||
raise ValueError('number of bits must be greater than zero')
|
||||
if k != int(k):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue