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

Class CustomSet

Lib/test/test_dictviews.py:97–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 d4 = {'d': 4}
96
97 class CustomSet(set):
98 def intersection(self, other):
99 return CustomSet(super().intersection(other))
100
101 self.assertEqual(d1.keys() & d1.keys(), {'a', 'b'})
102 self.assertEqual(d1.keys() & d2.keys(), {'b'})

Callers 2

intersectionMethod · 0.85

Calls

no outgoing calls

Tested by 2

intersectionMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…