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

Class SizeBlock

Lib/test/test_collections.py:1121–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119 self.assertNotIsInstance(ColNoCont(), Collection)
1120 # Check None blocking
1121 class SizeBlock:
1122 def __iter__(self): return iter([])
1123 def __contains__(self): return False
1124 __len__ = None
1125 class IterBlock:
1126 def __len__(self): return 0
1127 def __contains__(self): return True

Callers 1

test_CollectionMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_CollectionMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…