Logo Search packages:      
Sourcecode: vegastrike-data version File versions  Download package

def inspect::getmembers (   object,
  predicate = None 
)

Return all members of an object as (name, value) pairs sorted by name.
Optionally, only return members that satisfy a given predicate.

Definition at line 155 of file inspect.py.

00155                                       :
    """Return all members of an object as (name, value) pairs sorted by name.
    Optionally, only return members that satisfy a given predicate."""
    results = []
    for key in dir(object):
        value = getattr(object, key)
        if not predicate or predicate(value):
            results.append((key, value))
    results.sort()
    return results

def classify_class_attrs(cls):


Generated by  Doxygen 1.6.0   Back to index