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

# Class Seq

source code

    object --+
             |
            Seq

property seq of Base2 inheriting classes, holds a list of Item objects.

used only by Selector for now

is normally readonly, only writable during parsing

Instance Methods | [hide private]
__init__(self, readonly=True) only way to write to a Seq is to initialize it with new items each itemtuple has (value, type, line) where line is optional | source code
__delitem__(self, i) | source code
__getitem__(self, i) | source code
__setitem__(self, i, (val, typ, line, col)) | source code
__iter__(self) | source code
__len__(self) | source code
append(self, val, typ, line=None, col=None) if not readonly add new Item() | source code
replace(self, index=-1, val=None, typ=None, line=None, col=None) if not readonly replace Item at index with new Item or simply replace value or type | source code
__repr__(self) returns a repr same as a list of tuples of (value, type) | source code
__str__(self) str(x) | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

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

Method Details | [hide private]

### __init__(self, readonly=True) (Constructor) | source code
only way to write to a Seq is to initialize it with new items each itemtuple has (value, type, line) where line is optional Overrides: object.__init__

### __repr__(self) (Representation operator) | source code
returns a repr same as a list of tuples of (value, type) Overrides: object.__repr__

### __str__(self) (Informal representation operator) | source code
str(x) Overrides: object.__str__ (inherited documentation)