mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Whitespace normalization (via reindent.py).
This commit is contained in:
parent
e8889c5741
commit
9e34c04732
10 changed files with 19 additions and 23 deletions
|
@ -303,7 +303,7 @@ class Random(_random.Random):
|
|||
result = [None] * k
|
||||
setsize = 21 # size of a small set minus size of an empty list
|
||||
if k > 5:
|
||||
setsize += 4 ** _ceil(_log(k * 3, 4)) # table size for big sets
|
||||
setsize += 4 ** _ceil(_log(k * 3, 4)) # table size for big sets
|
||||
if n <= setsize: # is an n-length list smaller than a k-length set
|
||||
pool = list(population)
|
||||
for i in xrange(k): # invariant: non-selected at [0,n-i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue