Демихов Валентин, 611 группа UniSize 13607
Радаева Карина Владиславовна, 405 группа UniSize 13564
f1def sizer(cls):f1def sizer(cls):
22
n3    class SizeDescriptor:n3    class Descriptor:
44
n5        def __get__(self, instance, cls):n5        def __get__(self, obj, cls):
6            if hasattr(instance, '__len__'):6            if hasattr(cls, '__len__'):
7                return len(instance)7                return len(obj)
8            elif hasattr(instance, '__abs__'):8            if hasattr(cls, '__abs__'):
9                return abs(instance)9                return abs(obj)
10            return 010            return 0
t11    cls.size = SizeDescriptor()t11    cls.size = Descriptor()
12    return cls12    return cls
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op