diff options
Diffstat (limited to 'Lib/operator.py')
-rw-r--r-- | Lib/operator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/operator.py b/Lib/operator.py index 6782703..241fdbb 100644 --- a/Lib/operator.py +++ b/Lib/operator.py @@ -155,10 +155,10 @@ def contains(a, b): return b in a def countOf(a, b): - "Return the number of times b occurs in a." + "Return the number of items in a which are, or which equal, b." count = 0 for i in a: - if i == b: + if i is b or i == b: count += 1 return count |