Токарев Андрей Вадимович, 617 группа NegExtender 11964 | Коляскина Ирина Сергеевна 524 NegExtender 12668 | ||||
---|---|---|---|---|---|
f | 1 | class NegExt: | f | 1 | class NegExt: |
2 | 2 | ||||
3 | def __neg__(self): | 3 | def __neg__(self): | ||
4 | if hasattr(super(), '__neg__'): | 4 | if hasattr(super(), '__neg__'): | ||
5 | return self.__class__(super().__neg__()) | 5 | return self.__class__(super().__neg__()) | ||
6 | try: | 6 | try: | ||
7 | return self.__class__(self[1:-1]) | 7 | return self.__class__(self[1:-1]) | ||
t | 8 | except Exception as e: | t | 8 | except Exception: |
9 | return self.__class__(self) | 9 | return self.__class__(self) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|