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