Гайдей Мария Викторовна 321 группа NegExtender 12218 | Пономаренко Вячеслав Сергеевич, 525 группа NegExtender 11728 | ||||
---|---|---|---|---|---|
f | 1 | class NegExt: | f | 1 | class NegExt: |
2 | 2 | ||||
3 | def __neg__(self): | 3 | def __neg__(self): | ||
4 | try: | 4 | try: | ||
t | 5 | return self.__class__(self.__class__.__mro__[2].__neg__(self | t | 5 | return self.__class__(self.__class__.mro()[2].__neg__(self)) |
> | )) | ||||
6 | except: | 6 | except: | ||
7 | try: | 7 | try: | ||
8 | return self.__class__(self[1:-1]) | 8 | return self.__class__(self[1:-1]) | ||
9 | except: | 9 | except: | ||
10 | return self.__class__(self) | 10 | return self.__class__(self) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|