Файзуллов Айрат Рафагатович 530 группа NegExtender 12565 | Пономаренко Вячеслав Сергеевич, 525 группа NegExtender 11728 | ||||
---|---|---|---|---|---|
t | 1 | class NegExt: | t | 1 | class NegExt: |
2 | 2 | ||||
3 | def __neg__(self): | 3 | def __neg__(self): | ||
4 | try: | 4 | try: | ||
5 | return self.__class__(self.__class__.mro()[2].__neg__(self)) | 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 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|