Package pyxb :: Package binding :: Module content :: Class _PluralBinding |
[hide private]
[frames] | no frames]

# ABCMeta _PluralBinding

source code

           object --+
                    |
        _abcoll.Sized --+
                        |
           object --+   |
                    |   |
     _abcoll.Iterable --+
                        |
           object --+   |
                    |   |
    _abcoll.Container --+
                        |
         _abcoll.Sequence --+
                            |
      _abcoll.MutableSequence --+
                                |
                               _PluralBinding

Helper for element content that supports multiple occurences.

This is an adapter for Python list. Any operation that can mutate an item in the list ensures the stored value is compatible with the element for which the list holds values.

Instance Methods | [hide private]
__init__(self, *args, **kw) | source code
__convert(self, v) | source code
__len__(self) | source code
__getitem__(self, key) | source code
__setitem__(self, key, value) | source code
__delitem__(self, key) | source code
__iter__(self) | source code
__reversed__(self) | source code
__contains__(self, item) | source code
append(self, x) | source code
extend(self, x) | source code
count(self, x) | source code
index(self, x, i=0, j=-1) | source code
insert(self, i, x) | source code
pop(self, i=-1) | source code
remove(self, x) | source code
reverse(self) | source code
sort(self, key=None, reverse=False) | source code
__str__(self) | source code
__hash__(self) | source code
__eq__(self, other) | source code
__le__(x, y) x<=y | source code
_PluralBinding__convert(self, v) | source code
__ge__(x, y) x>=y | source code
__gt__(x, y) x>y | source code
__ne__(x, y) x!=y | source code
Inherited from `_abcoll.MutableSequence`: `__iadd__`

Class Methods | [hide private]
Inherited from `_abcoll.Sized`: `__subclasshook__`

Class Variables | [hide private]
| __list = `None`
| __elementBinding = `None`
| _PluralBinding__elementBinding = `None`
| _PluralBinding__list = `None`
| __abstractmethods__ = ``frozenset([``])``
| _abc_negative_cache = `<_weakrefset.WeakSet object at 0x241c910>`
| _abc_negative_cache_version = `18`
| _abc_registry = `<_weakrefset.WeakSet object at 0x21970d0>`
Inherited from `_abcoll.Sized` (private): `_abc_cache`

Method Details | [hide private]

### __init__(self, *args, **kw) (Constructor) | source code
Overrides: object.__init__ (inherited documentation)

### __len__(self) (Length operator) | source code
Overrides: _abcoll.Sized.__len__

### __getitem__(self, key) (Indexing operator) | source code
Overrides: _abcoll.Sequence.__getitem__

### __setitem__(self, key, value) (Index assignment operator) | source code
Overrides: _abcoll.MutableSequence.__setitem__

### __delitem__(self, key) (Index deletion operator) | source code
Overrides: _abcoll.MutableSequence.__delitem__

### __iter__(self) | source code
Overrides: _abcoll.Iterable.__iter__

### __reversed__(self) | source code
Overrides: _abcoll.Sequence.__reversed__

### __contains__(self, item) (In operator) | source code
Overrides: _abcoll.Container.__contains__

### append(self, x) | source code
Overrides: _abcoll.MutableSequence.append

### extend(self, x) | source code
Overrides: _abcoll.MutableSequence.extend

### count(self, x) | source code
Overrides: _abcoll.Sequence.count

### index(self, x, i=0, j=-1) | source code
Overrides: _abcoll.Sequence.index

### insert(self, i, x) | source code
Overrides: _abcoll.MutableSequence.insert

### pop(self, i=-1) | source code
Overrides: _abcoll.MutableSequence.pop

### remove(self, x) | source code
Overrides: _abcoll.MutableSequence.remove

### reverse(self) | source code
Overrides: _abcoll.MutableSequence.reverse

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

### __hash__(self) (Hashing function) | source code
Overrides: object.__hash__ (inherited documentation)