From: Raymond Hettinger Date: Thu, 23 Mar 2023 19:46:15 +0000 (-0500) Subject: Minor readability improvement to the factor() recipe (GH-102971) X-Git-Tag: v3.12.0a7~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16f6165b71e81b5e4d0be660ac64a9fce7dfd86c;p=thirdparty%2FPython%2Fcpython.git Minor readability improvement to the factor() recipe (GH-102971) --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 5daadfd3759f..70e5b7905f20 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -936,7 +936,7 @@ which incur interpreter overhead. n = quotient if n == 1: return - if n >= 2: + if n > 1: yield n def flatten(list_of_lists):