Савицкая Анастасия, 125ая UniSize 13919
Бельницкая Елизавета Алексеевна 321 UniSize 13398
n1class My_sizer:n1class Sizer:
22
3    def __get__(self, obj, cls):3    def __get__(self, obj, cls):
4        if hasattr(obj, '__len__'):4        if hasattr(obj, '__len__'):
5            return len(obj)5            return len(obj)
6        elif hasattr(obj, '__abs__'):6        elif hasattr(obj, '__abs__'):
7            return abs(obj)7            return abs(obj)
n8        else:n
9            return 08        return 0
109
11def sizer(cls):10def sizer(cls):
t12    cls.size = My_sizer()t11    cls.size = Sizer()
13    return cls12    return cls
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op