Майоров Егор Андреевич, 527 группа NegExtender 12168 | Кривуля Полина Юрьевна, 517 NegExtender 11970 | ||||
---|---|---|---|---|---|
f | 1 | class NegExt: | f | 1 | class NegExt: |
2 | 2 | ||||
3 | def __neg__(self): | 3 | def __neg__(self): | ||
n | 4 | classes = self.__class__.mro() | n | 4 | clas = self.__class__.mro() |
5 | try: | 5 | try: | ||
n | 6 | return classes[0](classes[2].__neg__(self)) | n | 6 | return clas[0](clas[2].__neg__(self)) |
7 | except: | 7 | except: | ||
8 | try: | 8 | try: | ||
n | 9 | return classes[0](self[1:-1]) | n | 9 | return clas[0](self[1:-1]) |
10 | except: | 10 | except: | ||
t | 11 | return classes[0](self) | t | 11 | return clas[0](self) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|