Кузнецов Егор Дмитриевич, ФКИ, 6-ой курс MetaBool 17544
Островерхов Андрей Сергеевич, 514 группа MetaBool 16701
f1class empty(type):f1class empty(type):
22
n3    def __call__(cls, *args, **kwds):n3    def __call__(cls, *args, **kwargs):
44
n5        def cbool(self):n5        def __bool__(self):
6            for val in self.__dict__.values():6            for i in self.__dict__.values():
7                if not val:7                if not i:
8                    return False8                    return False
9            return True9            return True
t10        cls.__bool__ = cboolt10        cls.__bool__ = __bool__
11        return super().__call__(*args, **kwds)11        return super().__call__(*args, **kwargs)
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op