| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
dict --+
|
Storage
A Storage object is like a dictionary except `obj.foo` can be used in addition to `obj['foo']`.
>>> o = storage(a=1) >>> o.a 1 >>> o['a'] 1 >>> o.a = 2 >>> o['a'] 2 >>> del o.a >>> o.a Traceback (most recent call last): ... AttributeError: 'a'
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__delattr__('name') <==> del x.name
|
repr(x)
|
x.__setattr__('name', value) <==> x.name = value
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 4 09:57:30 2010 | http://epydoc.sourceforge.net |