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

Method __getattribute__

Lib/test/test_copy.py:84–87  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

82 def test_copy_cant(self):
83 class C(object):
84 def __getattribute__(self, name):
85 if name.startswith("__reduce"):
86 raise AttributeError(name)
87 return object.__getattribute__(self, name)
88 x = C()
89 self.assertRaises(copy.Error, copy.copy, x)
90

Callers

nothing calls this directly

Calls 1

startswithMethod · 0.45

Tested by

no test coverage detected