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