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