Package libxyz :: Package core :: Module odict :: Class ODict

[hide private]
[frames] | no frames]

# Class ODict

source code

    UserDict.DictMixin --+
                         |
                        ODict

Ordered dictionary Provides dictionary-like access to parsed values Input order is kept

Instance Methods | [hide private]

__init__(self, name=None) | source code

next(self) | source code

iteritems(self) | source code

keys(self) | source code

values(self) | source code

__str__(self) | source code

__repr__(self) | source code

__getitem__(self, var) | source code

__setitem__(self, var, val) | source code

__delitem__(self, var) | source code

__contains__(self, key) | source code

__iter__(self) | source code

get(self, var, default) Lookup for var or return default | source code

index(self, index) Lookup variable by index | source code

lookup(self, var) Lookup for value of variable If variable does not exist raise KeyError | source code

set(self, var, val) Set new value to variable | source code

Inherited from `UserDict.DictMixin`: `__cmp__`, `__len__`, `clear`, `has_key`, `items`, `iterkeys`, `itervalues`, `pop`, `popitem`, `setdefault`, `update`

Method Details | [hide private]

### iteritems(self)

source code

Overrides: UserDict.DictMixin.iteritems

### values(self)

source code

Overrides: UserDict.DictMixin.values

### __repr__(self)
(Representation operator)

source code

Overrides: UserDict.DictMixin.__repr__

### __contains__(self, key)
(In operator)

source code

Overrides: UserDict.DictMixin.__contains__

### __iter__(self)

source code

Overrides: UserDict.DictMixin.__iter__

### get(self, var, default)

source code

Lookup for var or return default

Overrides: UserDict.DictMixin.get