(obj, predicate=None)
return inspect.getmembers(obj, mypredicate)
Return all the members of an object in a list of (name, value) pairs sorted by name.

    Behaves like inspect.getmembers. If a type object is passed as a predicate,
    only members of that type are returned.
Return all the members of an object in a list of (name, value) pairs sorted by name.
Return all the members of an object in a list of ( name value ) pairs sorted by name .
def getmembers(obj, predicate=None):
    """Return all the members of an object in a list of (name, value) pairs sorted by name.

    Behaves like inspect.getmembers. If a type object is passed as a predicate,
    only members of that type are returned.
    """

    if isinstance(predicate, type):
        def mypredicate(x):
            return isinstance(x, predicate)
    else:
        mypredicate = predicate
    return inspect.getmembers(obj, mypredicate)
def getmembers ( obj , predicate = None ) : if isinstance ( predicate , type ) : def mypredicate ( x ) : return isinstance ( x , predicate ) else : mypredicate = predicate return inspect . getmembers ( obj , mypredicate )