https://github.com/python/cpython/commit/18e12641a61a88f7d08b2114ebe965892c6661c5
commit: 18e12641a61a88f7d08b2114ebe965892c6661c5
branch: main
author: Raymond Hettinger <[email protected]>
committer: rhettinger <[email protected]>
date: 2024-03-31T16:09:22-05:00
summary:
gh-117387 Remove hash mark from introductory text (#117409)
files:
M Lib/collections/__init__.py
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index 0aa0c3e15e9519..2a35989ee25a5e 100644
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -639,7 +639,8 @@ def elements(self):
>>> sorted(c.elements())
['A', 'A', 'B', 'B', 'C', 'C']
- # Knuth's example for prime factors of 1836: 2**2 * 3**3 * 17**1
+ Knuth's example for prime factors of 1836: 2**2 * 3**3 * 17**1
+
>>> import math
>>> prime_factors = Counter({2: 2, 3: 3, 17: 1})
>>> math.prod(prime_factors.elements())
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]