UniSize/MaximKornilov
UniSize/akozlov
f1def sizer(cls):f1def sizer(cls):
22
n3    class getter:n3    class Descriptor:
44
5        def __get__(self, obj, cls):5        def __get__(self, obj, cls):
66
7            if hasattr(obj, '__len__'):7            if hasattr(obj, '__len__'):
8                return len(obj)8                return len(obj)
n9 n
10            if hasattr(obj, '__abs__'):9            if hasattr(obj, '__abs__'):
11                return abs(obj)10                return abs(obj)
1211
13            return 012            return 0
1413
n15    class Sizer(cls):n14    cls.size = Descriptor()
1615
n17        size = getter()n16    return cls
1817
t19    return Sizert
20 
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op