summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2023-03-23 19:46:15 (GMT)
committerGitHub <noreply@github.com>2023-03-23 19:46:15 (GMT)
commit16f6165b71e81b5e4d0be660ac64a9fce7dfd86c (patch)
tree2227edb3f1131852ab12ead1a3bc21f42e50c8f8
parentb6132085ca5418f714eff6e31d1d03369d3fd1d9 (diff)
downloadcpython-16f6165b71e81b5e4d0be660ac64a9fce7dfd86c.zip
cpython-16f6165b71e81b5e4d0be660ac64a9fce7dfd86c.tar.gz
cpython-16f6165b71e81b5e4d0be660ac64a9fce7dfd86c.tar.bz2
Minor readability improvement to the factor() recipe (GH-102971)
-rw-r--r--Doc/library/itertools.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index 5daadfd..70e5b79 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):