Андрей Спиваков, 524 группа NegExtender 11956
Павшинский Даниил, 206 группа NegExtender 12326
f1class NegExt:f1class NegExt:
22
3    def __neg__(self):3    def __neg__(self):
4        try:4        try:
n5            result = super().__neg__()n5            res = super().__neg__()
6        except Exception:6        except Exception:
7            try:7            try:
n8                result = self[1:-1]n8                res = self[1:-1]
9            except Exception:9            except Exception:
t10                result = selft10                res = self
11        return self.__class__(result)11        return self.__class__(res)
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op