Package cssutils :: Module util :: Class ListSeq |
[hide private]
[frames] | no frames]

# Class ListSeq

source code

    object --+
             |
            ListSeq

Known Subclasses:
  - css.selectorlist.SelectorList
  - , stylesheets.medialist.MediaList

(EXPERIMENTAL) A base class used for list classes like css.SelectorList or stylesheets.MediaList

adds list like behaviour running on inhering class' property `seq`

- item in x => bool
- len(x) => integer
- get, set and del x[i]
- for item in x
- append(item)

some methods must be overwritten in inheriting class

Instance Methods | [hide private]
__init__(self) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
__contains__(self, item) | source code
__delitem__(self, index) | source code
__getitem__(self, index) | source code
__iter__(self) | source code
__len__(self) | source code
__setitem__(self, index, item) must be overwritten | source code
append(self, item) must be overwritten | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)