From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 31 Mar 2024 21:24:28 +0000 (+0200) Subject: [3.12] gh-117387 Remove hash mark from introductory text (GH-117409) (#gh- X-Git-Tag: v3.12.3~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b912d2b24a3fbd552595e3584bf851f9a2c75127;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-117387 Remove hash mark from introductory text (GH-117409) (#gh- --- diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 0e7971a872e3..5f000b5f2c38 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -638,7 +638,8 @@ class Counter(dict): >>> 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())