mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Minor wording and spacing nits.
This commit is contained in:
parent
34809170e5
commit
2e6694086f
2 changed files with 7 additions and 11 deletions
|
@ -476,7 +476,6 @@ def padnone(seq):
|
|||
"""Returns the sequence elements and then returns None indefinitely.
|
||||
|
||||
Useful for emulating the behavior of the built-in map() function.
|
||||
|
||||
"""
|
||||
return chain(seq, repeat(None))
|
||||
|
||||
|
@ -494,7 +493,6 @@ def repeatfunc(func, times=None, *args):
|
|||
"""Repeat calls to func with specified arguments.
|
||||
|
||||
Example: repeatfunc(random.random)
|
||||
|
||||
"""
|
||||
if times is None:
|
||||
return starmap(func, repeat(args))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue