MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __delattr__

Method __delattr__

example_code/item_056.py:86–87  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

84 raise AttributeError("Immutable object: set not allowed")
85
86 def __delattr__(self, key):
87 raise AttributeError("Immutable object: del not allowed")
88
89
90# Verify del is also prevented

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected