Мальчевский Степан Алексеевич, 321 группа MetaBool 16793 | Латарцев Константин Владимирович, ФКИ, группа 105 MetaBool 17250 | ||||
---|---|---|---|---|---|
f | 1 | class empty(type): | f | 1 | class empty(type): |
2 | 2 | ||||
n | 3 | def __call__(cls, *args, **kwargs): | n | 3 | def __call__(cls, *args, **kwds): |
4 | 4 | ||||
n | 5 | def boolean(self): | n | 5 | def fun(self): |
6 | for item, value in self.__dict__.items(): | 6 | for key, value in self.__dict__.items(): | ||
7 | if not value: | 7 | if not value: | ||
8 | return False | 8 | return False | ||
9 | return True | 9 | return True | ||
t | 10 | cls.__bool__ = boolean | t | 10 | cls.__bool__ = fun |
11 | return super().__call__(*args, **kwargs) | 11 | return super().__call__(*args, **kwds) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|