| Trees | Indices | Help |
|---|
|
|
object --+
|
dict --+
|
Properties
I am a special dictionary which you also can treat as an instance. Setting and getting an attribute works. This is suitable for using in a kiwi proxy. >>> p = Properties() >>> p.attr = 'value' >>> p <Properties {'attr': 'value'}>
Note that you cannot insert the attributes which has the same name as dictionary methods, such as 'keys', 'values', 'items', 'update'.
Underscores are converted to dashes when setting attributes, eg:
>>> p.this_is_outrageous = True >>> p <Properties {'this-is-outrageous': True}>
|
|||
|
|||
|
|||
|
|||
|
|||
| True if D has a key k, else False |
|
||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x[i]=y
|
x.__setattr__('name', value) <==> x.name = value
|
x.__delattr__('name') <==> del x.name
|
|
repr(x)
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 24 12:49:48 2010 | http://epydoc.sourceforge.net |