From: Борис Верховский Date: Sat, 2 Nov 2019 19:09:14 +0000 (-0400) Subject: Convert argument to snake_case (GH-16990) X-Git-Tag: v3.9.0a1~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99b7701978d1fdc81e10c31d1ad8cce2c0c2d848;p=thirdparty%2FPython%2Fcpython.git Convert argument to snake_case (GH-16990) --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 8d134d438065..3e5a67389810 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -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.