Буян Кирилл Игоревич, 403 NegExtender 12959
Попова Полина Дмитриевна, 441/2 группа NegExtender 12107
f1class NegExt:f1class NegExt:
22
3    def __neg__(self):3    def __neg__(self):
4        if hasattr(super(), '__neg__'):4        if hasattr(super(), '__neg__'):
5            try:5            try:
6                return self.__class__(super().__neg__())6                return self.__class__(super().__neg__())
n7            except SyntaxError:n7            except TypeError:
8                pass8                pass
n9        if hasattr(super(), '__getitem__'):n9        if hasattr(self, '__getitem__'):
10            try:10            try:
11                return self.__class__(self[1:-1])11                return self.__class__(self[1:-1])
t12            except KeyError:t12            except Exception:
13                pass13                pass
14        return self.__class__(self)14        return self.__class__(self)
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op