Package lxml :: Package html :: Class MultipleSelectOptions
[hide private]
[frames] | no frames]

Class MultipleSelectOptions

source code

       object --+    
                |    
setmixin.SetMixin --+
                    |
                   MultipleSelectOptions

Represents all the selected options in a ``<select multiple>`` element.

You can add to this set-like option to select an option, or remove to unselect the option.

Instance Methods [hide private]
 
__init__(self, select)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__iter__(self) source code
 
add(self, item) source code
 
remove(self, item) source code
 
__repr__(self)
repr(x)
source code

Inherited from setmixin.SetMixin: __and__, __contains__, __ge__, __iand__, __ior__, __isub__, __ixor__, __le__, __len__, __or__, __sub__, __xor__, clear, copy, difference, difference_update, discard, intersection, intersection_update, issubset, issuperset, symmetric_difference, symmetric_difference_update, union, update

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]
  options
Iterator of all the ``<option>`` elements.

Inherited from object: __class__

Method Details [hide private]

__init__(self, select)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details [hide private]

options

Iterator of all the ``<option>`` elements.

Get Method:
unreachable.options(self) - Iterator of all the ``<option>`` elements.