mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Convert argument to snake_case (GH-16990)
This commit is contained in:
parent
d9d3993d1d
commit
99b7701978
1 changed files with 2 additions and 2 deletions
|
|
@ -766,9 +766,9 @@ which incur interpreter overhead.
|
|||
def dotproduct(vec1, vec2):
|
||||
return sum(map(operator.mul, vec1, vec2))
|
||||
|
||||
def flatten(listOfLists):
|
||||
def flatten(list_of_lists):
|
||||
"Flatten one level of nesting"
|
||||
return chain.from_iterable(listOfLists)
|
||||
return chain.from_iterable(list_of_lists)
|
||||
|
||||
def repeatfunc(func, times=None, *args):
|
||||
"""Repeat calls to func with specified arguments.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue