Debian Codegraph @

tests/testdata/python3/data/fake_module_with_collection_getattribute.py

raw
1 class Changer:
2 def __getattribute__(self, name):
3 list_collection.append(self)
4 set_collection.add(self)
5 dict_collection[self] = self
6 return object.__getattribute__(self, name)
7
8
9 list_collection = [Changer()]
10 set_collection = {Changer()}
11 dict_collection = {Changer(): Changer()}