Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
This commit is contained in:
parent
b65685f3f2
commit
37851d0e55
|
@ -278,6 +278,8 @@ class Random(_random.Random):
|
||||||
|
|
||||||
Optional arg random is a 0-argument function returning a random
|
Optional arg random is a 0-argument function returning a random
|
||||||
float in [0.0, 1.0); by default, the standard random.random.
|
float in [0.0, 1.0); by default, the standard random.random.
|
||||||
|
|
||||||
|
Do not supply the 'int' argument.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if random is None:
|
if random is None:
|
||||||
|
|
Loading…
Reference in New Issue