[Python-checkins] Minor readability improvement to the factor() recipe (GH-102971)
rhettinger
webhook-mailer at python.org
Thu Mar 23 15:46:22 EDT 2023
https://github.com/python/cpython/commit/16f6165b71e81b5e4d0be660ac64a9fce7dfd86c
commit: 16f6165b71e81b5e4d0be660ac64a9fce7dfd86c
branch: main
author: Raymond Hettinger <rhettinger at users.noreply.github.com>
committer: rhettinger <rhettinger at users.noreply.github.com>
date: 2023-03-23T14:46:15-05:00
summary:
Minor readability improvement to the factor() recipe (GH-102971)
files:
M Doc/library/itertools.rst
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index 5daadfd3759f..70e5b7905f20 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):
More information about the Python-checkins
mailing list