CountFields/disfavour
CountFields/sver
n1def fcounter(self, *args):n1def fcounter(Cl, *args):
2    q = self(*args)2    c = Cl(*args)
3    d = {0: [], 1: [], 2: [], 3: []}3    res = {0: [], 1: [], 2: [], 3: []}
44
n5    for item in dir(self):n5    for item in dir(Cl):
6        if item[0] != "_":6        if item[0] != "_":
n7            if callable(getattr(self, item)):n7            if callable(getattr(Cl, item)):
8                d[0].append(item)8                res[0].append(item)
9            else:9            else:
n10                d[1].append(item)n10                res[1].append(item)
1111
n12    for item in dir(q):n12    for item in dir(c):
13        if item[0] != "_":13        if item[0] != "_":
n14            if callable(getattr(q, item)):n14            if callable(getattr(c, item)):
15                d[2].append(item)15                res[2].append(item)
16            else:16            else:
n17                d[3].append(item)n17                res[3].append(item)
1818
n19    d[2] = [i for i in d[2] if i not in d[0]]n19    res[2] = [i for i in res[2] if i not in res[0]]
20    d[3] = [i for i in d[3] if i not in d[1]]20    res[3] = [i for i in res[3] if i not in res[1]]
2121
n22    map(sorted, d.values())n22    map(sorted, res.values())
2323
t24    return d[0], d[1], d[2], d[3]t24    return res[0], res[1], res[2], res[3]
2525
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op