From 0e96c419d7287c3c7f155c9f2de3c61020386256 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 6 Jun 2020 12:42:54 -0700 Subject: [PATCH] Update comments to reflect the current API (GH-20682) --- Lib/collections/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 2acf67289f2..03393f35b11 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -760,10 +760,12 @@ class Counter(dict): # set(cp - cq) == sp - sq # set(cp | cq) == sp | sq # set(cp & cq) == sp & sq - # cp.isequal(cq) == (sp == sq) - # cp.issubset(cq) == sp.issubset(sq) - # cp.issuperset(cq) == sp.issuperset(sq) - # cp.isdisjoint(cq) == sp.isdisjoint(sq) + # (cp == cq) == (sp == sq) + # (cp != cq) == (sp != sq) + # (cp <= cq) == (sp <= sq) + # (cp < cq) == (sp < sq) + # (cp >= cq) == (sp >= sq) + # (cp > cq) == (sp > sq) def __add__(self, other): '''Add counts from two counters.