summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/random.py2
-rw-r--r--Lib/test/test_itertools.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/Lib/random.py b/Lib/random.py
index e0c015d..70603ca 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -74,7 +74,7 @@ class Random(_random.Random):
Class Random can also be subclassed if you want to use a different basic
generator of your own devising: in that case, override the following
methods: random(), seed(), getstate(), and setstate().
- Optionally, implement a getrandombits() method so that randrange()
+ Optionally, implement a getrandbits() method so that randrange()
can cover arbitrarily large ranges.
"""
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index 8c482c5..a0d45e3 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -1257,8 +1257,7 @@ Samuele
>>> def grouper(n, iterable, fillvalue=None):
... "grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx"
... args = [iter(iterable)] * n
-... kwds = dict(fillvalue=fillvalue)
-... return zip_longest(*args, **kwds)
+... return zip_longest(fillvalue=fillvalue, *args)
>>> def roundrobin(*iterables):
... "roundrobin('ABC', 'D', 'EF') --> A D E B F C"