t | def fcounter(cln, *clargs): | t | def fcounter(C, *args): |
| | | cm = list((i for i in dir(C) if callable(getattr(C, i)) and i[0] != '_')) |
| | | cf = list( |
| | | (i for i in dir(C) if not callable( |
| | | getattr( |
| | | C, i)) and i[0] != '_')) |
| | | c = C(*args) |
| cm = sorted([i for i in dir(cln) if ( | | om = list((i for i in dir(c) if callable( |
| callable(getattr(cln, i)) and i[0] != '_')]) | | |
| cf = sorted([i for i in dir(cln) if ( | | |
| not(callable(getattr(cln, i))) and i[0] != '_')]) | | |
| obj = cln(*clargs) | | |
| om = sorted([i for i in dir(obj) if ( | | |
| callable(getattr(obj, i)) and i[0] != '_' and i not in cm)]) | | getattr(c, i)) and i[0] != '_' and i not in cm)) |
| of = sorted([i for i in dir(obj) if ( | | of = list((i for i in dir(c) if not callable( |
| not(callable(getattr(obj, i))) and i[0] != '_' and i not in cf)]) | | getattr(c, i)) and i[0] != '_' and i not in cf)) |
| return cm, cf, om, of | | return [cm, cf, om, of] |
| | | |