Юрий Савиных, 527 группа ClassOnly 14244 | Бедрин Павел Александрович, 428 группа ClassOnly 15054 | ||||
---|---|---|---|---|---|
f | 1 | from itertools import product | f | 1 | from itertools import product |
n | 2 | _global_lookup_slots = set((''.join(el) for el in product('abcd', repeat=4))) | n | 2 | slots = set((''.join(t) for t in product('abcd', repeat=4))) |
3 | 3 | ||||
4 | class Struct: | 4 | class Struct: | ||
n | 5 | __slots__ = [] | n | 5 | __slots__ = () |
6 | 6 | ||||
t | 7 | def __getattribute__(self, __name): | t | 7 | def __getattribute__(self, attr): |
8 | if __name in _global_lookup_slots: | 8 | if attr in slots: | ||
9 | return __name | 9 | return attr | ||
10 | raise AttributeError | 10 | raise AttributeError |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|