Конев Артём Александрович 527 UniSize 14080
Ермакова Анна Ивановна, 519/2 UniSize 13750
n1class Dsc:n1class SizerClass:
22
3    def __init__(self):3    def __init__(self):
n4        self.size = Nonen4        self._value = 0
55
6    def __get__(self, obj, cls):6    def __get__(self, obj, cls):
n7        if self.size:n7        if self._value:
8            return self.size8            return self._value
9        try:9        try:
10            return len(obj)10            return len(obj)
11        except:11        except:
12            try:12            try:
13                return abs(obj)13                return abs(obj)
14            except:14            except:
15                return 015                return 0
1616
17    def __set__(self, obj, val):17    def __set__(self, obj, val):
n18        self.size = valn18        self._value = val
1919
20    def __delete__(self, obj):20    def __delete__(self, obj):
n21        self.size = Nonen21        self._value = None
2222
23def sizer(cls):23def sizer(cls):
t24    cls.size = Dsc()t24    cls.size = SizerClass()
25    return cls25    return cls
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op