Чебанова Анастасия, 515гр MetaBool 16708 | Савидов Георгий Анатольевич, 527 группа MetaBool 16777 | ||||
---|---|---|---|---|---|
f | 1 | class empty(type): | f | 1 | class empty(type): |
2 | 2 | ||||
3 | def __init__(cls, name, parents, ns, **kwds): | 3 | def __init__(cls, name, parents, ns, **kwds): | ||
4 | 4 | ||||
n | 5 | def newbool(self): | n | 5 | def bol(self): |
6 | for vals in self.__dict__.values(): | 6 | for arg in self.__dict__.values(): | ||
7 | if not vals: | 7 | if not arg: | ||
8 | return False | 8 | return False | ||
9 | return True | 9 | return True | ||
t | 10 | cls.__bool__ = newbool | t | 10 | cls.__bool__ = bol |
11 | return super().__init__(name, parents, ns) | 11 | return super().__init__(name, parents, ns) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|