cpython: 1f51867fe50e (original) (raw)

Mercurial > cpython

changeset 85985:1f51867fe50e

Issue #19169: Micro refactoring with a micro benefit for brevity and speed. [#19169]

Raymond Hettinger python@rcn.com
date Sat, 05 Oct 2013 17🔞36 -0700
parents 43e94e77329e
children 94246efe2275
files Lib/random.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-)[+] [-] Lib/random.py 4

line wrap: on

line diff

--- a/Lib/random.py +++ b/Lib/random.py @@ -220,10 +220,11 @@ class Random(_random.Random): Method=_MethodType, BuiltinMethod=_BuiltinMethodType): "Return a random int in the range [0,n). Raises ValueError if n==0."

@@ -231,7 +232,6 @@ class Random(_random.Random): return r # There's an overriden random() method but no new getrandbits() method, # so we can only use random() from here.