summaryrefslogtreecommitdiffstats
path: root/Lib/collections
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2020-06-06 19:42:54 (GMT)
committerGitHub <noreply@github.com>2020-06-06 19:42:54 (GMT)
commit0e96c419d7287c3c7f155c9f2de3c61020386256 (patch)
treef8e8555500a9774cefc7d56f4f178ee58e2ea92a /Lib/collections
parentf7c4e236429606e1c982cacf24e10fc86ef4462f (diff)
downloadcpython-0e96c419d7287c3c7f155c9f2de3c61020386256.zip
cpython-0e96c419d7287c3c7f155c9f2de3c61020386256.tar.gz
cpython-0e96c419d7287c3c7f155c9f2de3c61020386256.tar.bz2
Update comments to reflect the current API (GH-20682)
Diffstat (limited to 'Lib/collections')
-rw-r--r--Lib/collections/__init__.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index 2acf672..03393f3 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.