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

Method __delattr__

Lib/importlib/util.py:226–231  ·  view source on GitHub ↗

Trigger the load and then perform the deletion.

(self, attr)

Source from the content-addressed store, hash-verified

224 return getattr(self, attr)
225
226 def __delattr__(self, attr):
227 """Trigger the load and then perform the deletion."""
228 # To trigger the load and raise an exception if the attribute
229 # doesn't exist.
230 self.__getattribute__(attr)
231 delattr(self, attr)
232
233
234class LazyLoader(Loader):

Callers

nothing calls this directly

Calls 1

__getattribute__Method · 0.95

Tested by

no test coverage detected