Литвинов Арсений Александрович ClassOnly 14976
Полина Рагозина, 527 группа ClassOnly 15548
f1from itertools import productf1from itertools import product
22
3class Struct:3class Struct:
4    __slots__ = ()4    __slots__ = ()
n5    __precomputed_set_of_names = {''.join(name) for name in product('abcd', repeat=4)}n5    possible = {''.join(i) for i in product('abcd', repeat=4)}
66
t7    def __getattribute__(self, name):t7    def __getattribute__(self, item):
8        if name in Struct.__precomputed_set_of_names:8        if item in Struct.possible:
9            return name9            return item
10        else:10        else:
11            raise AttributeError11            raise AttributeError
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op