t | def fcounter(K, *args): | t | def fcounter(S, *args): |
| g = K(*args) | | s = S(*args) |
| a = [j for j in dir(g) if j[0] != '_'] | | rs = [j for j in dir(s) if j[0] != '_'] |
| b = [j for j in dir(K) if j[0] != '_'] | | rS = [j for j in dir(S) if j[0] != '_'] |
| c = [j for j in b if callable(getattr(K, j))] | | rSm = [j for j in rS if callable(getattr(S, j))] |
| d = [j for j in b if not callable(getattr(K, j))] | | |
| e = [j for j in a if callable(getattr(g, j))] | | |
| f = [j for j in a if not callable(getattr(g, j))] | | rSf = [j for j in rS if not callable(getattr(S, j))] |
| return c, d, [j for j in e if j not in c], [j for j in f if j not in d] | | rsm = [j for j in rs if callable(getattr(s, j))] |
| | | rsf = [j for j in rs if not callable(getattr(s, j))] |
| | | return rSm, rSf, [ |
| | | j for j in rsm if j not in rSm], [ |
| | | j for j in rsf if j not in rSf] |
| | | |