[Python-checkins] Update comments to reflect the current API (GH-20682)

Raymond Hettinger webhook-mailer at python.org
Sat Jun 6 15:43:03 EDT 2020


https://github.com/python/cpython/commit/0e96c419d7287c3c7f155c9f2de3c61020386256
commit: 0e96c419d7287c3c7f155c9f2de3c61020386256
branch: master
author: Raymond Hettinger <rhettinger at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-06-06T12:42:54-07:00
summary:

Update comments to reflect the current API (GH-20682)

files:
M Lib/collections/__init__.py

diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index 2acf67289f225..03393f35b11c5 100644
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -760,10 +760,12 @@ def __repr__(self):
     #         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.



More information about the Python-checkins mailing list