From: Raymond Hettinger Date: Sun, 31 Mar 2024 21:09:22 +0000 (-0500) Subject: gh-117387 Remove hash mark from introductory text (#117409) X-Git-Tag: v3.13.0a6~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18e12641a61a88f7d08b2114ebe965892c6661c5;p=thirdparty%2FPython%2Fcpython.git gh-117387 Remove hash mark from introductory text (#117409) --- diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 0aa0c3e15e95..2a35989ee25a 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -639,7 +639,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())