8000 Minor readability improvement to the factor() recipe (GH-102971) · miss-islington/cpython@b4b8177 · GitHub
[go: up one dir, main page]

Skip to content

Commit b4b8177

Browse files
rhettingermiss-islington
authored andcommitted
Minor readability improvement to the factor() recipe (pythonGH-102971)
(cherry picked from commit 16f6165) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
1 parent 202e16e commit b4b8177

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)
0