Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Assign NameStore ListLoad Str Str Str For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad For NameStore Call NameLoad Num body If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num ListLoad NameLoad NameLoad NameLoad Index NameLoad NameLoad For TupleStore NameStore TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Return NameLoad decorator_list orelse FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list If CompareIs NameLoad NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list If CompareIs NameLoad NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list Expr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpMod Str NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Return Call Call NameLoad NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMod Str NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Return Call Call NameLoad NameLoad NameLoad Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMod Str NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call Call NameLoad NameLoad NameLoad Return Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler body Assign NameStore Num Assign NameStore BinOpSub NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler body Assign NameStore Num Expr Call NameLoad NameLoad NameLoad BinOpAdd NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If NameLoad body Assign NameStore BinOpSub NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad BinOpSub NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If CompareIsNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Return AttributeLoad NameLoad attr orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr CompareNotEq Call NameLoad NameLoad AttributeLoad NameLoad attr CompareNotEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If Call NameLoad NameLoad NameLoad body If CompareEq NameLoad NameLoad body Return NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num Return Call NameLoad NameLoad SubscriptLoad NameLoad Index Num decorator_list Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str If BoolOpOr CompareIs NameLoad NameLoad CompareEq NameLoad NameLoad body Raise NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Raise Call NameLoad handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Slice While UnaryOpNot NameLoad body If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr orelse If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Assign NameStore NameLoad For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Exec NameLoad NameLoad NameLoad Return SubscriptLoad NameLoad Index NameLoad decorator_list Assign NameStore Call Call NameLoad Call NameLoad Str Num Num Num NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler body Return BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body For NameStore AttributeLoad NameLoad attr body If BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Expr Call NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad NameLoad If BoolOpAnd CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Slice Call NameLoad NameLoad NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Dict Expr Call NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad NameLoad If BoolOpAnd CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Slice Call NameLoad NameLoad NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpOr CompareIs Call NameLoad NameLoad NameLoad BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad NameLoad Num NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn Call NameLoad NameLoad NameLoad body If CompareIs SubscriptLoad NameLoad Index Call NameLoad NameLoad NameLoad body Return If CompareIsNot NameLoad NameLoad body If CompareEq NameLoad Num body Return AugAssignSub NameStore Num Assign SubscriptStore NameLoad Index Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad BinOpAdd BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad BinOpAdd BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body For NameStore Call NameLoad Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad BinOpAdd BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd NameLoad Str NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd NameLoad Str NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd NameLoad Str NameLoad NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad Str body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad NameLoad NameLoad NameLoad BinOpAdd BinOpAdd NameLoad Str NameLoad NameLoad NameLoad NameLoad NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd NameLoad Str NameLoad NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad NameLoad NameLoad BinOpAdd NameLoad Str NameLoad NameLoad NameLoad NameLoad orelse If BoolOpOr Call NameLoad NameLoad BinOpAdd AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareIn AttributeLoad Call NameLoad NameLoad attr TupleLoad Str Str Str Str body Pass orelse If NameLoad body Print Str Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num While Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Break Return NameLoad decorator_list Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str
N/A N/A 
Standardized versions of various cool and/or strange things that you can do
with Python's reflection capabilities.
 N/A sys N/A os N/A types N/A pickle N/A traceback N/A weakref N/A re N/A warnings N/A new N/A N/A collections deque N/A N/A N/A ImportError N/A N/A deque list N/A RegexType N/A type N/A N/A re compile N/A N/A cStringIO StringIO N/A N/A N/A ImportError N/A StringIO StringIO twisted.python.util unsignedID twisted.python.deprecate deprecated twisted.python.deprecate _fullyQualifiedName fullyQualifiedName twisted.python.versions Version Settable N/A N/A N/A 
    A mixin class for syntactic sugar.  Lets you assign attributes by
    calling with keyword arguments; for example, C{x(a=b,c=d,y=z)} is the
    same as C{x.a=b;x.c=d;x.y=z}.  The most useful place for this is
    where you don't want to name a variable, but you do want to set
    some attributes; for example, C{X()(y=z,a=b)}.
     __init__ N/A N/A self N/A kw N/A N/A N/A self kw N/A __call__ N/A N/A self N/A kw N/A N/A N/A key val N/A N/A kw items N/A N/A N/A setattr self key val N/A self N/A N/A AccessorType N/A type N/A N/A Metaclass that generates properties automatically.

    This is for Python 2.2 and up.

    Using this metaclass for your class will give you explicit accessor
    methods; a method called set_foo, will automatically create a property
    'foo' that uses set_foo as a setter method. Same for get_foo and del_foo.

    Note that this will only work on methods that are present on class
    creation. If you add methods after the class is defined they will not
    automatically become properties. Likewise, class attributes will only
    be used if they are present upon class creation, and no getter function
    was set - if a getter is present, the class attribute will be ignored.

    This is a 2.2-only alternative to the Accessor mixin - just set in your
    class definition::

        __metaclass__ = AccessorType

     __init__ N/A N/A self name bases d N/A N/A N/A N/A N/A type __init__ self name bases d N/A accessors N/A N/A prefixs N/A get_ set_ del_ N/A k N/A N/A d keys N/A N/A v N/A getattr self k N/A i N/A range 3 N/A N/A N/A N/A k startswith N/A prefixs N/A i N/A N/A N/A N/A N/A accessors setdefault N/A k N/A 4 N/A None None None N/A i v N/A N/A name N/A getter setter deler N/A N/A accessors items N/A N/A N/A getter None N/A N/A N/A hasattr self name N/A N/A value N/A getattr self name getter N/A N/A this value name N/A value name N/A N/A N/A name N/A this __dict__ N/A N/A N/A N/A this __dict__ N/A name N/A N/A value N/A N/A getter N/A N/A this name N/A name N/A N/A N/A name N/A this __dict__ N/A N/A N/A N/A this __dict__ N/A name N/A N/A N/A AttributeError N/A no such attribute %r name N/A N/A N/A setter None N/A setter N/A N/A this value name N/A name N/A N/A N/A N/A this __dict__ N/A name value N/A N/A N/A deler None N/A deler N/A N/A this name N/A name N/A N/A N/A N/A this __dict__ N/A name N/A N/A N/A setattr self name N/A property getter setter deler N/A N/A PropertyAccessor N/A object N/A N/A A mixin class for Python 2.2 that uses AccessorType.

    This provides compatability with the pre-2.2 Accessor mixin, up
    to a point.

    Extending this class will give you explicit accessor methods; a
    method called set_foo, for example, is the same as an if statement
    in __setattr__ looking for 'foo'.  Same for get_foo and del_foo.

    There are also reallyDel and reallySet methods, so you can
    override specifics in subclasses without clobbering __setattr__
    and __getattr__, or using non-2.1 compatible code.

    There is are incompatibilities with Accessor - accessor
    methods added after class creation will *not* be detected. OTOH,
    this method is probably way faster.

    In addition, class attributes will only be used if no getter
    was defined, and instance attributes will not override getter methods
    whereas in original Accessor the class attribute or instance attribute
    would override the getter method.
     N/A __metaclass__ AccessorType reallySet N/A N/A self k v N/A N/A N/A N/A N/A self __dict__ N/A k v N/A reallyDel N/A N/A self k N/A N/A N/A N/A N/A self __dict__ N/A k N/A N/A Accessor N/A N/A N/A 
    Extending this class will give you explicit accessor methods; a
    method called C{set_foo}, for example, is the same as an if statement
    in L{__setattr__} looking for C{'foo'}.  Same for C{get_foo} and
    C{del_foo}.  There are also L{reallyDel} and L{reallySet} methods,
    so you can override specifics in subclasses without clobbering
    L{__setattr__} and L{__getattr__}.

    This implementation is for Python 2.1.
     __setattr__ N/A N/A self k v N/A N/A N/A kstring N/A set_%s k N/A N/A hasattr N/A self __class__ kstring N/A N/A N/A N/A getattr self kstring v N/A N/A N/A N/A self reallySet k v N/A __getattr__ N/A N/A self k N/A N/A N/A kstring N/A get_%s k N/A N/A hasattr N/A self __class__ kstring N/A N/A N/A N/A getattr self kstring N/A N/A AttributeError N/A %s instance has no accessor for: %s N/A N/A qual N/A self __class__ k N/A __delattr__ N/A N/A self k N/A N/A N/A kstring N/A del_%s k N/A N/A hasattr N/A self __class__ kstring N/A N/A N/A N/A getattr self kstring N/A N/A N/A N/A self reallyDel k N/A reallySet N/A N/A self k v N/A N/A N/A 
        *actually* set self.k to v without incurring side-effects.
        This is a hook to be overridden by subclasses.
         N/A N/A k __dict__ N/A N/A N/A N/A N/A self __dict__ clear N/A N/A N/A N/A self __dict__ update v N/A N/A N/A N/A self __dict__ N/A k v N/A reallyDel N/A N/A self k N/A N/A N/A 
        *actually* del self.k without incurring side-effects.  This is a
        hook to be overridden by subclasses.
         N/A N/A N/A self __dict__ N/A k N/A N/A N/A OriginalAccessor Accessor Summer N/A Accessor N/A N/A 
    Extend from this class to get the capability to maintain 'related
    sums'.  Have a tuple in your class like the following::

        sums=(('amount','credit','credit_total'),
              ('amount','debit','debit_total'))

    and the 'credit_total' member of the 'credit' member of self will
    always be incremented when the 'amount' member of self is
    incremented, similiarly for the debit versions.
     reallySet N/A N/A self k v N/A N/A N/A This method does the work. N/A sum N/A self sums N/A N/A attr N/A sum N/A 0 N/A obj N/A sum N/A 1 N/A objattr N/A sum N/A 2 N/A N/A k attr N/A N/A N/A N/A oldval N/A getattr self attr N/A N/A N/A N/A oldval 0 N/A diff N/A v oldval N/A N/A hasattr self obj N/A N/A ob N/A getattr self obj N/A N/A ob None N/A N/A N/A N/A oldobjval N/A getattr ob objattr N/A N/A N/A N/A oldobjval 0.0 N/A N/A setattr ob objattr N/A oldobjval diff N/A N/A N/A k obj N/A N/A N/A hasattr self attr N/A N/A x N/A getattr self attr N/A N/A setattr self attr 0 N/A y N/A getattr self k N/A N/A N/A Accessor reallySet self k v N/A N/A setattr self attr x N/A N/A N/A Accessor reallySet self y v N/A N/A N/A Accessor reallySet self k v N/A N/A QueueMethod N/A N/A N/A  I represent a method that doesn't exist yet. __init__ N/A N/A self name calls N/A N/A N/A N/A self name name N/A N/A self calls calls N/A __call__ N/A N/A self N/A args N/A N/A N/A N/A N/A self calls append N/A N/A self name args N/A N/A funcinfo N/A N/A function N/A N/A N/A 
    this is more documentation for myself than useful code.
     N/A N/A N/A warnings warn [v2.5] Use inspect.getargspec instead of twisted.python.reflect.funcinfo DeprecationWarning stacklevel 2 N/A code N/A function func_code N/A name N/A function func_name N/A argc N/A code co_argcount N/A argv N/A N/A code co_varnames N/A argc N/A defaults N/A function func_defaults N/A out N/A N/A N/A N/A out append N/A The function %s accepts %s arguments N/A name argc N/A defaults N/A N/A required N/A argc N/A len defaults N/A N/A N/A out append N/A It requires %s arguments required N/A N/A N/A out append N/A The arguments required are: %s N/A argv N/A required N/A N/A N/A out append additional arguments are: N/A i N/A range N/A argc required N/A N/A j N/A i required N/A N/A N/A out append N/A %s which has a default of N/A N/A argv N/A j N/A defaults N/A i N/A out N/A N/A ISNT 0 N/A WAS 1 N/A IS 2 fullFuncName N/A N/A func N/A N/A N/A qualName N/A N/A N/A str N/A N/A pickle whichmodule func N/A func __name__ . N/A func __name__ N/A N/A N/A namedObject qualName func N/A N/A N/A Exception N/A Couldn't find %s as %s. N/A func qualName N/A qualName N/A qual N/A N/A clazz N/A N/A N/A Return full import path of a class. N/A N/A N/A N/A clazz __module__ . N/A clazz __name__ N/A getcurrent N/A N/A clazz N/A N/A N/A N/A N/A type clazz N/A types ClassType must be a class... N/A module N/A namedModule N/A clazz __module__ N/A currclass N/A getattr module N/A clazz __name__ None N/A N/A currclass None N/A N/A clazz N/A currclass N/A getClass N/A N/A obj N/A N/A N/A Return the class or type of object 'obj'.
    Returns sensible result for oldstyle and newstyle instances and types. N/A N/A hasattr obj __class__ N/A N/A N/A obj __class__ N/A N/A N/A type obj N/A isinst N/A N/A inst clazz N/A N/A N/A N/A N/A N/A type inst N/A types InstanceType N/A N/A type clazz N/A types ClassType N/A N/A N/A isinstance inst clazz N/A cl N/A inst __class__ N/A cl2 N/A getcurrent cl N/A clazz N/A getcurrent clazz N/A N/A issubclass cl2 clazz N/A N/A N/A cl cl2 N/A N/A WAS N/A N/A N/A inst __class__ cl2 N/A IS N/A N/A ISNT N/A namedModule N/A N/A name N/A N/A N/A Return a module given its name. N/A topLevel N/A __import__ name N/A packages N/A N/A N/A name split . N/A 1 N/A m topLevel N/A p packages N/A N/A m N/A getattr m p N/A m N/A namedObject N/A N/A name N/A N/A N/A Get a fully named module-global object.
     N/A classSplit N/A N/A name split . N/A module N/A namedModule N/A N/A . join N/A classSplit N/A -1 N/A N/A getattr module N/A classSplit N/A -1 N/A N/A namedClass namedObject _NoModuleFound N/A Exception N/A N/A 
    No module was found because none exists.
     N/A InvalidName N/A ValueError N/A N/A 
    The given name is not a dot-separated list of Python objects.
     N/A ModuleNotFound N/A InvalidName N/A N/A 
    The module associated with the given name doesn't exist and it can't be
    imported.
     N/A ObjectNotFound N/A InvalidName N/A N/A 
    The object associated with the given name doesn't exist and it can't be
    imported.
     N/A _importAndCheckStack N/A N/A importName N/A N/A N/A 
    Import the given name as a module, then walk the stack to determine whether
    the failure was the module not existing, or some code in the module (for
    example a dependent import) failing.  This can be helpful to determine
    whether any actual application code was run.  For example, to distiguish
    administrative error (entering the wrong module name), from programmer
    error (writing buggy code in a module that fails to import).

    @raise Exception: if something bad happens.  This can be any type of
    exception, since nobody knows what loading some arbitrary code might do.

    @raise _NoModuleFound: if no module was found.
     N/A N/A N/A N/A N/A N/A __import__ importName N/A N/A N/A ImportError N/A N/A N/A excType excValue excTraceback N/A N/A sys exc_info N/A excTraceback N/A N/A execName N/A N/A N/A excTraceback tb_frame f_globals N/A __name__ N/A N/A N/A execName None N/A execName importName N/A N/A excType excValue excTraceback N/A excTraceback N/A excTraceback tb_next N/A N/A _NoModuleFound N/A N/A N/A N/A N/A N/A N/A sys modules pop importName None N/A N/A namedAny N/A N/A name N/A N/A N/A 
    Retrieve a Python object by its fully qualified name from the global Python
    module namespace.  The first part of the name, that describes a module,
    will be discovered and imported.  Each subsequent part of the name is
    treated as the name of an attribute of the object specified by all of the
    name which came before it.  For example, the fully-qualified name of this
    object is 'twisted.python.reflect.namedAny'.

    @type name: L{str}
    @param name: The name of the object to return.

    @raise InvalidName: If the name is an empty string, starts or ends with
        a '.', or is otherwise syntactically incorrect.

    @raise ModuleNotFound: If the name is syntactically correct but the
        module it specifies cannot be imported because it does not appear to
        exist.

    @raise ObjectNotFound: If the name is syntactically correct, includes at
        least one '.', but the module it specifies cannot be imported because
        it does not appear to exist.

    @raise AttributeError: If an attribute of an object along the way cannot be
        accessed, or a module along the way is not found.

    @return: the Python object identified by 'name'.
     N/A N/A name N/A N/A N/A InvalidName Empty module name N/A names N/A N/A name split . N/A N/A names N/A N/A N/A InvalidName N/A name must be a string giving a '.'-separated list of Python identifiers, not %r N/A name N/A topLevelPackage None N/A moduleNames N/A names N/A N/A N/A topLevelPackage N/A N/A moduleNames N/A N/A trialname N/A N/A . join moduleNames N/A N/A N/A topLevelPackage N/A _importAndCheckStack trialname N/A N/A N/A _NoModuleFound N/A N/A N/A N/A moduleNames pop N/A N/A N/A N/A len names 1 N/A N/A N/A ModuleNotFound N/A No module named %r N/A name N/A N/A N/A ObjectNotFound N/A %r does not name an object N/A name N/A obj topLevelPackage N/A n N/A names N/A 1 N/A N/A obj N/A getattr obj n N/A obj N/A macro N/A N/A name filename source N/A identifiers N/A N/A macro(name, source, **identifiers)

    This allows you to create macro-like behaviors in python.
     N/A N/A N/A N/A identifiers has_key name N/A N/A N/A identifiers N/A name name N/A source N/A source identifiers N/A codeplace N/A <%s (macro)> filename N/A code N/A compile source codeplace exec N/A sm N/A sys modules N/A tprm twisted.python.reflect.macros N/A N/A N/A N/A sm has_key tprm N/A N/A macros N/A N/A new module tprm N/A N/A sm N/A tprm macros N/A N/A macros count 0 N/A macros N/A sm N/A tprm N/A N/A macros count 1 N/A macroname N/A macro_ N/A str N/A macros count N/A tprmm N/A N/A tprm . macroname N/A mymod N/A N/A new module tprmm N/A N/A N/A sys modules N/A tprmm mymod N/A N/A setattr macros macroname mymod N/A dict N/A mymod __dict__ N/A code dict dict N/A N/A dict N/A name N/A N/A macro N/A N/A deprecated N/A Version Twisted 8 2 0 macro _determineClass N/A N/A x N/A N/A N/A N/A N/A N/A x __class__ N/A N/A N/A N/A N/A type x N/A _determineClassName N/A N/A x N/A N/A N/A c N/A _determineClass x N/A N/A N/A N/A c __name__ N/A N/A N/A N/A N/A N/A N/A str c N/A N/A N/A N/A N/A <BROKEN CLASS AT 0x%x> N/A unsignedID c N/A _safeFormat N/A N/A formatter o N/A N/A N/A 
    Helper function for L{safe_repr} and L{safe_str}.
     N/A N/A N/A N/A formatter o N/A N/A N/A N/A io N/A StringIO N/A N/A N/A traceback print_exc file io N/A className N/A _determineClassName o N/A tbValue N/A N/A io getvalue N/A N/A <%s instance at 0x%x with %s error:
 %s> N/A className N/A unsignedID o N/A formatter __name__ tbValue N/A safe_repr N/A N/A o N/A N/A N/A 
    safe_repr(anything) -> string

    Returns a string representation of an object, or a string containing a
    traceback, if that object's __repr__ raised an exception.
     N/A N/A _safeFormat repr o N/A safe_str N/A N/A o N/A N/A N/A 
    safe_str(anything) -> string

    Returns a string representation of an object, or a string containing a
    traceback, if that object's __str__ raised an exception.
     N/A N/A _safeFormat str o N/A allYourBase N/A N/A classObj baseClass N/A None N/A N/A allYourBase(classObj, baseClass=None) -> list of all base
    classes that are subclasses of baseClass, unless it is None,
    in which case all bases will be added.
     N/A l N/A N/A N/A accumulateBases classObj l baseClass N/A l N/A accumulateBases N/A N/A classObj l baseClass N/A None N/A N/A base N/A classObj __bases__ N/A N/A N/A N/A baseClass None N/A issubclass base baseClass N/A N/A N/A N/A l append base N/A N/A accumulateBases base l baseClass N/A prefixedMethodNames N/A N/A classObj prefix N/A N/A N/A A list of method names with a given prefix in a given class.
     N/A dct N/A N/A N/A addMethodNamesToDict classObj dct prefix N/A N/A N/A dct keys N/A addMethodNamesToDict N/A N/A classObj dict prefix baseClass N/A None N/A N/A 
    addMethodNamesToDict(classObj, dict, prefix, baseClass=None) -> dict
    this goes through 'classObj' (and its bases) and puts method names
    starting with 'prefix' in 'dict' with a value of 1. if baseClass isn't
    None, methods will only be added if classObj is-a baseClass

    If the class in question has the methods 'prefix_methodname' and
    'prefix_methodname2', the resulting dict should look something like:
    {"methodname": 1, "methodname2": 1}.
     N/A base N/A classObj __bases__ N/A N/A N/A addMethodNamesToDict base dict prefix baseClass N/A N/A N/A baseClass None N/A baseClass N/A classObj __bases__ N/A N/A N/A name method N/A N/A N/A classObj __dict__ items N/A N/A optName N/A name N/A N/A len prefix N/A N/A N/A N/A type method N/A types FunctionType N/A N/A name N/A N/A len prefix prefix N/A len optName N/A N/A N/A dict N/A optName 1 N/A prefixedMethods N/A N/A obj prefix N/A N/A N/A A list of methods with a given prefix on a given instance.
     N/A dct N/A N/A N/A accumulateMethods obj dct prefix N/A N/A N/A dct values N/A accumulateMethods N/A N/A obj dict prefix curClass N/A None N/A N/A accumulateMethods(instance, dict, prefix)
    I recurse through the bases of instance.__class__, and add methods
    beginning with 'prefix' to 'dict', in the form of
    {'methodname':*instance*method_object}.
     N/A N/A curClass N/A N/A curClass N/A obj __class__ N/A base N/A curClass __bases__ N/A N/A N/A accumulateMethods obj dict prefix base N/A N/A name method N/A N/A N/A curClass __dict__ items N/A N/A optName N/A name N/A N/A len prefix N/A N/A N/A N/A type method N/A types FunctionType N/A N/A name N/A N/A len prefix prefix N/A len optName N/A N/A N/A dict N/A optName N/A getattr obj name N/A accumulateClassDict N/A N/A classObj attr adict baseClass N/A None N/A N/A Accumulate all attributes of a given name in a class heirarchy into a single dictionary.

    Assuming all class attributes of this name are dictionaries.
    If any of the dictionaries being accumulated have the same key, the
    one highest in the class heirarchy wins.
    (XXX: If "higest" means "closest to the starting class".)

    Ex::

    | class Soy:
    |   properties = {"taste": "bland"}
    |
    | class Plant:
    |   properties = {"colour": "green"}
    |
    | class Seaweed(Plant):
    |   pass
    |
    | class Lunch(Soy, Seaweed):
    |   properties = {"vegan": 1 }
    |
    | dct = {}
    |
    | accumulateClassDict(Lunch, "properties", dct)
    |
    | print dct

    {"taste": "bland", "colour": "green", "vegan": 1}
     N/A base N/A classObj __bases__ N/A N/A N/A accumulateClassDict base attr adict N/A N/A N/A baseClass None N/A baseClass N/A classObj __bases__ N/A N/A N/A N/A adict update N/A N/A N/A classObj __dict__ get attr N/A N/A accumulateClassList N/A N/A classObj attr listObj baseClass N/A None N/A N/A Accumulate all attributes of a given name in a class heirarchy into a single list.

    Assuming all class attributes of this name are lists.
     N/A base N/A classObj __bases__ N/A N/A N/A accumulateClassList base attr listObj N/A N/A N/A baseClass None N/A baseClass N/A classObj __bases__ N/A N/A N/A N/A listObj extend N/A N/A N/A classObj __dict__ get attr N/A N/A isSame N/A N/A a b N/A N/A N/A N/A a b N/A isLike N/A N/A a b N/A N/A N/A N/A a b N/A modgrep N/A N/A goal N/A N/A N/A N/A objgrep N/A sys modules goal isLike sys.modules N/A isOfType N/A N/A start goal N/A N/A N/A N/A N/A N/A type start goal N/A N/A isinstance start N/A types InstanceType N/A N/A start __class__ goal N/A findInstances N/A N/A start t N/A N/A N/A N/A objgrep start t isOfType N/A objgrep N/A N/A start goal eq path paths seen showUnknowns maxDepth N/A isLike None None 0 None N/A N/A An insanely CPU-intensive process for finding stuff.
     N/A N/A paths None N/A N/A paths N/A N/A N/A seen None N/A N/A seen N/A N/A N/A eq start goal N/A N/A N/A N/A paths append path N/A N/A N/A id start seen N/A N/A N/A N/A seen N/A N/A id start start N/A N/A N/A N/A maxDepth None N/A N/A N/A maxDepth 0 N/A N/A N/A maxDepth 1 N/A N/A seen N/A N/A id start start N/A N/A isinstance start N/A types DictionaryType N/A N/A N/A k v N/A N/A start items N/A N/A N/A objgrep k goal eq N/A N/A N/A path { N/A repr v } paths seen showUnknowns maxDepth N/A N/A objgrep v goal eq N/A N/A N/A path [ N/A repr k ] paths seen showUnknowns maxDepth N/A N/A N/A isinstance start N/A list tuple deque N/A N/A idx N/A xrange N/A len start N/A N/A N/A objgrep N/A start N/A idx goal eq N/A N/A N/A path [ N/A str idx ] paths seen showUnknowns maxDepth N/A N/A N/A isinstance start N/A types MethodType N/A N/A N/A objgrep N/A start im_self goal eq N/A path .im_self paths seen showUnknowns maxDepth N/A N/A objgrep N/A start im_func goal eq N/A path .im_func paths seen showUnknowns maxDepth N/A N/A objgrep N/A start im_class goal eq N/A path .im_class paths seen showUnknowns maxDepth N/A N/A N/A hasattr start __dict__ N/A N/A N/A k v N/A N/A N/A start __dict__ items N/A N/A N/A objgrep v goal eq N/A N/A path . k paths seen showUnknowns maxDepth N/A N/A isinstance start N/A types InstanceType N/A N/A N/A objgrep N/A start __class__ goal eq N/A path .__class__ paths seen showUnknowns maxDepth N/A N/A N/A isinstance start N/A weakref ReferenceType N/A N/A N/A objgrep N/A start goal eq N/A path () paths seen showUnknowns maxDepth N/A N/A N/A N/A isinstance start N/A N/A types StringTypes N/A N/A types IntType N/A types FunctionType N/A types BuiltinMethodType RegexType N/A types FloatType N/A types NoneType N/A types FileType N/A N/A N/A type start __name__ N/A wrapper_descriptor method_descriptor member_descriptor getset_descriptor N/A N/A N/A N/A showUnknowns N/A N/A unknown type N/A type start start N/A paths N/A filenameToModuleName N/A N/A fn N/A N/A N/A 
    Convert a name in the filesystem to the name of the Python module it is.

    This is agressive about getting a module name back from a file; it will
    always return a string.  Agressive means 'sometimes wrong'; it won't look
    at the Python path or try to do any error checking: don't use this method
    unless you already know that the filename you're talking about is a Python
    module.
     N/A fullName N/A N/A N/A os path abspath fn N/A base N/A N/A N/A os path basename fn N/A N/A base N/A N/A base N/A N/A N/A os path basename N/A fn N/A -1 N/A modName N/A N/A N/A N/A os path splitext base N/A 0 N/A 1 N/A N/A fullName N/A N/A N/A os path dirname fullName N/A N/A N/A N/A os path exists N/A N/A N/A os path join fullName __init__.py N/A N/A modName N/A %s.%s N/A N/A N/A N/A os path basename fullName modName N/A N/A N/A modName N/A N/A __all__ N/A InvalidName ModuleNotFound ObjectNotFound ISNT WAS IS Settable AccessorType PropertyAccessor Accessor Summer QueueMethod OriginalAccessor funcinfo fullFuncName qual getcurrent getClass isinst namedModule namedObject namedClass namedAny macro safe_repr safe_str allYourBase accumulateBases prefixedMethodNames addMethodNamesToDict prefixedMethods accumulateClassDict accumulateClassList isSame isLike modgrep isOfType findInstances objgrep filenameToModuleName fullyQualifiedName