summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorБорис Верховский <boris.verk@gmail.com>2019-11-02 19:09:14 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2019-11-02 19:09:14 (GMT)
commit99b7701978d1fdc81e10c31d1ad8cce2c0c2d848 (patch)
tree03d6f851750d3fbf9fff82626e302379edfbf25e
parentd9d3993d1dbb2de11e15dd243df8be81681c46e5 (diff)
downloadcpython-99b7701978d1fdc81e10c31d1ad8cce2c0c2d848.zip
cpython-99b7701978d1fdc81e10c31d1ad8cce2c0c2d848.tar.gz
cpython-99b7701978d1fdc81e10c31d1ad8cce2c0c2d848.tar.bz2
Convert argument to snake_case (GH-16990)
-rw-r--r--Doc/library/itertools.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index 8d134d4..3e5a673 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.