Trees | Indices | Help |
|
---|
|
object --+ | dict --+ | basedataobject
A base object derived from dict that is used for various records. Existing code can just continue to treat it as a dict. New code can treat it as dict, as well as access via attribute names (ie object["foo"] or object.foo). attribute name access will always give a result includes None if the name is not in the dict.
As a bonus this class includes checking of attribute names and types in non-production runs. That will help catch typos etc. For production runs we may be receiving data that was written out by a newer version of BitPim so we don't check or error.
|
|||
|
|||
|
|||
None |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
_knownproperties =
|
|||
_knownlistproperties =
|
|||
_knowndictproperties =
|
|||
_persistrandom = random.Random()
|
|||
_shathingy = None
|
|
|||
Inherited from |
|
Update D from E and F: for k in E: D[k] = E[k] (if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k]
|
x[y]
|
x[i]=y
|
x.__setattr__('name', value) <==> x.name = value
|
x.__delattr__('name') <==> del x.name
|
Returns random ids used to give unique serial numbers to items
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jan 24 16:19:57 2010 | http://epydoc.sourceforge.net |