Chiganov Aleksey Andreevich M108 Facultet of Space Research MSU MetaBool 16975
Капранов Степан Сергеевич 427 MetaBool 16667
f1class empty(type):f1class empty(type):
22
n3    def __new__(metacls, name, parents, namespace, **kwargs):n3    def __new__(metacls, name, parents, ns, **kwargs):
44
n5        def __bool__(self):n5        def new_bool(self):
6            for value in self.__dict__.values():6            for i in self.__dict__.values():
7                if not value:7                if not i:
8                    return False8                    return False
9            return True9            return True
t10        namespace['__bool__'] = __bool__t10        ns['__bool__'] = new_bool
11        return super().__new__(metacls, name, parents, namespace)11        return super().__new__(metacls, name, parents, ns)
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op