Package turbogears :: Module util :: Class Bunch

Class Bunch

source code

object --+    
         |    
      dict --+
             |
            Bunch

Simple but handy collector of a bunch of named stuff.

Instance Methods
 
__repr__(self)
repr(x)
source code
 
__getattr__(self, name) source code
 
__setattr__(x, i, y)
x[i]=y
 
__delattr__(self, name)
x.__delattr__('name') <==> del x.name
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __init__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __format__, __reduce__, __reduce_ex__, __str__, __subclasshook__

Class Variables

Inherited from dict: __hash__

Properties

Inherited from object: __class__

Method Details

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__setattr__(x, i, y)

 

x[i]=y

Overrides: object.__setattr__

__delattr__(self, name)

source code 

x.__delattr__('name') <==> del x.name

Overrides: object.__delattr__
(inherited documentation)