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) >>> print o.a 1
>>> o['a'] 1
>>> o.a = 2 >>> print o['a'] 2
>>> del o.a >>> print o.a None
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
x.__setattr__('name', value) <==> x.name = value
|
x.__delattr__('name') <==> del x.name
|
repr(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Feb 3 10:53:21 2010 | http://epydoc.sourceforge.net |