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