Чиковани Давид UniSize 13371
Жибурт Никита Максимович,316 UniSize 14371
f1def sizer(cls):f1def sizer(cls):
22
n3    def size_getter(self):n3    def get_size(self):
4        if hasattr(self, '_custom_size'):4        if hasattr(self, '_size'):
5            return self._custom_size5            return self._size
6        try:6        else:
7            return len(self)
8        except TypeError:
9            try:7            try:
n10                return abs(self)n8                return len(self)
11            except TypeError:9            except TypeError:
nn10                try:
11                    return abs(self)
12                except TypeError:
12                return 013                    return 0
1314
n14    def size_setter(self, value):n15    def set_size(self, value):
15        self._custom_size = value16        self._size = value
1617
t17    def size_deleter(self):t18    def del_size(self):
18        if hasattr(self, '_custom_size'):19        if hasattr(self, '_size'):
19            del self._custom_size20            del self._size
20    setattr(cls, 'size', property(size_getter, size_setter, size_deleter21    setattr(cls, 'size', property(get_size, set_size, del_size))
>)) 
21    return cls22    return cls
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op