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