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

Function _difference

Lib/zipfile/_path/__init__.py:76–81  ·  view source on GitHub ↗

Return items in minuend not in subtrahend, retaining order with O(1) lookup.

(minuend, subtrahend)

Source from the content-addressed store, hash-verified

74
75
76def _difference(minuend, subtrahend):
77 """
78 Return items in minuend not in subtrahend, retaining order
79 with O(1) lookup.
80 """
81 return itertools.filterfalse(set(subtrahend).__contains__, minuend)
82
83
84class InitializedState:

Callers 1

_implied_dirsMethod · 0.85

Calls 1

setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…