Игорь Качушкин, 314 группа UniSize 13416
Григорьев Кирилл Андреевич, 341/2 UniSize 14878
f1def sizer(cls):f1def sizer(cls):
22
3    def get_size(self):3    def get_size(self):
n4        if hasattr(self, '_size'):n4        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 set_size(self, value):n13    def set_size(self, val):
13        self._size = value14        self._custom_size = val
1415
15    def del_size(self):16    def del_size(self):
t16        if hasattr(self, '_size'):t17        if hasattr(self, '_custom_size'):
17            del self._size18            del self._custom_size
18    cls.size = property(get_size, set_size, del_size)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