Searched refs:countOf (Results 1 – 8 of 8) sorted by relevance
/third_party/python/Lib/test/ |
D | test_iter.py | 700 from operator import countOf 701 self.assertEqual(countOf([1,2,2,3,2,5], 2), 3) 702 self.assertEqual(countOf((1,2,2,3,2,5), 2), 3) 703 self.assertEqual(countOf("122325", "2"), 3) 704 self.assertEqual(countOf("122325", "6"), 0) 706 self.assertRaises(TypeError, countOf, 42, 1) 707 self.assertRaises(TypeError, countOf, countOf, countOf) 711 self.assertEqual(countOf(d, k), 1) 712 self.assertEqual(countOf(d.values(), 3), 3) 713 self.assertEqual(countOf(d.values(), 2j), 1) [all …]
|
D | test_operator.py | 151 self.assertRaises(TypeError, operator.countOf) 152 self.assertRaises(TypeError, operator.countOf, None, None) 153 self.assertRaises(ZeroDivisionError, operator.countOf, BadIterable(), 1) 154 self.assertEqual(operator.countOf([1, 2, 1, 3, 1, 4], 3), 1) 155 self.assertEqual(operator.countOf([1, 2, 1, 3, 1, 4], 5), 0) 158 self.assertEqual(operator.countOf([nan, nan, 21], nan), 2) 160 self.assertEqual(operator.countOf([{}, 1, {}, 2], {}), 2)
|
/third_party/python/Lib/ |
D | operator.py | 157 def countOf(a, b): function
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0b4.rst | 306 Match the docstring and python implementation of :func:`~operator.countOf`
|
D | 3.10.0a1.rst | 876 :func:`~operator.countOf` of the :mod:`operator` module.
|
/third_party/python/Doc/library/ |
D | operator.rst | 217 .. function:: countOf(a, b)
|
/third_party/python/Doc/whatsnew/ |
D | 3.9.rst | 267 :func:`~operator.countOf` of the :mod:`operator` module.
|
/third_party/python/Misc/ |
D | HISTORY | 24726 operator.countOf() (PySequence_Count() in C API)
|