summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2022-02-02 04:18:11 (GMT)
committerGitHub <noreply@github.com>2022-02-02 04:18:11 (GMT)
commitf77beacf015e9bf8762e9b9a9a631396b05d4d9a (patch)
tree08c4c61e51bcb1c620fbbda45f2526e0e1fbdd0d /Lib
parentabcc3d75f6e570519cb37c62130a2295c6928bff (diff)
downloadcpython-f77beacf015e9bf8762e9b9a9a631396b05d4d9a.zip
cpython-f77beacf015e9bf8762e9b9a9a631396b05d4d9a.tar.gz
cpython-f77beacf015e9bf8762e9b9a9a631396b05d4d9a.tar.bz2
Fix minor details in the Counter docs (GH-31029)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/collections/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index fa8b309..264435c 100644
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -736,6 +736,10 @@ class Counter(dict):
# To strip negative and zero counts, add-in an empty counter:
# c += Counter()
#
+ # Results are ordered according to when an element is first
+ # encountered in the left operand and then by the order
+ # encountered in the right operand.
+ #
# When the multiplicities are all zero or one, multiset operations
# are guaranteed to be equivalent to the corresponding operations
# for regular sets.