Олеся Индычко, 201 группа, магистратура UniSize 14201
Бельницкая Елизавета Алексеевна 321 UniSize 13398
n1class SizeDescriptor:n1class Sizer:
22
n3    def __get__(self, instance, owner):n3    def __get__(self, obj, cls):
4        if hasattr(instance, '__len__'):4        if hasattr(obj, '__len__'):
5            return len(instance)5            return len(obj)
6        elif hasattr(instance, '__abs__'):6        elif hasattr(obj, '__abs__'):
7            return abs(instance)7            return abs(obj)
8        else:
9            return 08        return 0
109
11def sizer(cls):10def sizer(cls):
t12    cls.size = SizeDescriptor()t11    cls.size = Sizer()
13    return cls12    return cls
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op