From 60b2b58f87af178f8eb5e4b579f8a518c267373f Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Thu, 23 Mar 2023 12:56:35 -0700 Subject: [3.11] Minor readability improvement to the factor() recipe (GH-102971) (GH-102972) --- 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 e1ffd39..2196e53 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): -- cgit v0.12