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