From b4b81774f11741bc39f6e7a13d9023db4f7f5c46 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 23 Mar 2023 14:46:15 -0500 Subject: [PATCH] Minor readability improvement to the factor() recipe (GH-102971) (cherry picked from commit 16f6165b71e81b5e4d0be660ac64a9fce7dfd86c) Co-authored-by: Raymond Hettinger --- Doc/library/itertools.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index e1ffd39b1bd815..2196e53502f5a4 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):