Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60b2b58

Browse files
[3.11] Minor readability improvement to the factor() recipe (GH-102971) (GH-102972)
1 parent 202e16e commit 60b2b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/itertools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ which incur interpreter overhead.
925925
n = quotient
926926
if n == 1:
927927
return
928-
if n >= 2:
928+
if n > 1:
929929
yield n
930930

931931
def flatten(list_of_lists):

0 commit comments

Comments
 (0)