MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / __getattribute__

Method __getattribute__

tests/cloudpickle_test.py:2537–2538  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

2535 def test_recursion_during_pickling(self):
2536 class A:
2537 def __getattribute__(self, name):
2538 return getattr(self, name)
2539
2540 a = A()
2541 with pytest.raises(pickle.PicklingError, match="deep recursion"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected