#NEWLINE# def __init__( self , **kwargs ) : #NEWLINE# #INDENT# "\n        Initialize this object's probability.  This initializer should\n        be called by subclass constructors.  ``prob`` should generally be\n        the first argument for those constructors.\n\n        :param prob: The probability associated with the object.\n        :type prob: float\n        :param logprob: The log of the probability associated with\n            the object.\n        :type logprob: float\n        " #NEWLINE# if ( 'prob' in kwargs ) : #NEWLINE# #INDENT# if ( 'logprob' in kwargs ) : #NEWLINE# #INDENT# raise TypeError ( 'Must specify either prob or logprob (not both)' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ProbabilisticMixIn . set_prob ( self , kwargs [ 'prob' ] ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'logprob' in kwargs ) : #NEWLINE# #INDENT# ProbabilisticMixIn . set_logprob ( kwargs , kwargs [ 'logprob' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . __prob = self . __logprob = None