From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 23 Mar 2023 19:56:35 +0000 (-0700) Subject: [3.11] Minor readability improvement to the factor() recipe (GH-102971) (GH-102972) X-Git-Tag: v3.11.3~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60b2b58f87af178f8eb5e4b579f8a518c267373f;p=thirdparty%2FPython%2Fcpython.git [3.11] Minor readability improvement to the factor() recipe (GH-102971) (GH-102972) --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index e1ffd39b1bd8..2196e53502f5 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -925,7 +925,7 @@ which incur interpreter overhead. n = quotient if n == 1: return - if n >= 2: + if n > 1: yield n def flatten(list_of_lists):