Казанцева Варвара Денисовна, 508 UniSize 14242
Евдокимов Арсений Евгеньевич, 321 группа UniSize 13914
n1class Descr:n1class Desc:
22
3    def __get__(self, obj, cls):3    def __get__(self, obj, cls):
n4        if hasattr(obj, '_size'):n4        if hasattr(obj, '_value'):
5            return obj._size5            return obj._value
6        if hasattr(obj, '__len__'):6        elif hasattr(obj, '__len__'):
7            return len(obj)7            return len(obj)
n8        if hasattr(obj, '__abs__'):n8        elif hasattr(obj, '__abs__'):
9            return abs(obj)9            return abs(obj)
nn10        else:
10        return 011            return 0
1112
12    def __set__(self, obj, val):13    def __set__(self, obj, val):
n13        obj._size = valn14        obj._value = val
1415
15    def __delete__(self, obj):16    def __delete__(self, obj):
n16        del obj._sizen17        del obj._value
1718
18def sizer(cls):19def sizer(cls):
t19    cls.size = Descr()t20    cls.size = Desc()
20    return cls21    return cls
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op