[Python-checkins] Convert argument to snake_case (GH-16990) (GH-17033)

Raymond Hettinger webhook-mailer at python.org
Tue Nov 5 02:07:59 EST 2019


https://github.com/python/cpython/commit/0eb6fefad7c753a186cf51f0dc52416a1a8d6d51
commit: 0eb6fefad7c753a186cf51f0dc52416a1a8d6d51
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Raymond Hettinger <rhettinger at users.noreply.github.com>
date: 2019-11-04T23:07:24-08:00
summary:

Convert argument to snake_case (GH-16990) (GH-17033)

(cherry picked from commit 99b7701978d1fdc81e10c31d1ad8cce2c0c2d848)

Co-authored-by: Борис Верховский <boris.verk at gmail.com>

files:
M Doc/library/itertools.rst

diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index 8d134d4380659..3e5a673898106 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.



More information about the Python-checkins mailing list