MCPcopy Index your code
hub / github.com/python/cpython / count

Method count

Lib/multiprocessing/shared_memory.py:529–532  ·  view source on GitHub ↗

L.count(value) -> integer -- return number of occurrences of value.

(self, value)

Source from the content-addressed store, hash-verified

527 return self._offset_packing_formats + self._list_len * 8
528
529 def count(self, value):
530 "L.count(value) -> integer -- return number of occurrences of value."
531
532 return sum(value == entry for entry in self)
533
534 def index(self, value):
535 """L.index(value) -> integer -- return first index of value.

Callers 8

connection.pyFile · 0.45
__init__Method · 0.45
PipeFunction · 0.45
util.pyFile · 0.45
_bootstrapMethod · 0.45
process.pyFile · 0.45
pool.pyFile · 0.45

Calls

no outgoing calls