def __init__(self, value = None, label = None, values = None):
        """Initialize an `Option` object.

        :Parameters:
            - `value`: option value (mandatory).
            - `label`: option label (human-readable description).
            - `values`: for backward compatibility only.
        :Types:
            - `label`: `unicode`
            - `value`: `unicode`
        """
        self.label = label

        if value:
            self.value = value
        elif values:
            warnings.warn("Option constructor accepts only single value now.", DeprecationWarning, stacklevel=1)
            self.value = values[0]
        else:
            raise TypeError("value argument to pyxmpp.dataforms.Option is required")
def __init__ ( self , value = None , label = None , values = None ) : self . label = label if value : self . value = value elif values : warnings . warn ( "Option constructor accepts only single value now." , DeprecationWarning , stacklevel = 1 ) self . value = values [ 0 ] else : raise TypeError ( "value argument to pyxmpp.dataforms.Option is required" )
Initialize an `Option` object.

        :Parameters:
            - `value`: option value (mandatory).
            - `label`: option label (human-readable description).
            - `values`: for backward compatibility only.
        :Types:
            - `label`: `unicode`
            - `value`: `unicode`