Никитин Михаил, 321 группа UniSize 13813
Григорьев Кирилл Андреевич, 341/2 UniSize 14878
f1def sizer(cls):f1def sizer(cls):
22
n3    def size_method(self):n3    def get_size(self):
4        if hasattr(self, '_size'):4        if hasattr(self, '_custom_size'):
5            return self._size5            return self._custom_size
6        if hasattr(self, '__len__'):6        if hasattr(self, '__len__'):
7            return len(self)7            return len(self)
n8        if hasattr(self, '__abs__'):n8        elif hasattr(self, '__abs__'):
9            return abs(self)9            return abs(self)
nn10        else:
10        return 011            return 0
1112
n12    def size_setter(self, value):n13    def set_size(self, val):
13        self._size = value14        self._custom_size = val
1415
t15    def size_deleter(self):t16    def del_size(self):
16        if hasattr(self, '_size'):17        if hasattr(self, '_custom_size'):
17            del self._size18            del self._custom_size
18    cls.size = property(size_method, size_setter, size_deleter)19    cls.size = property(get_size, set_size, del_size)
19    return cls20    return cls
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op