parameters: (tuple)
return_statement: return obj
docstring: construct(tuple:(long,long,long,long)|(long,long,long,long,long)))
               : ElGamalobj
      Construct an ElGamal key from a 3- or 4-tuple of numbers.
docstring_summary: construct(tuple:(long,long,long,long)|(long,long,long,long,long)))
               : ElGamalobj
      Construct an ElGamal key from a 3- or 4-tuple of numbers.
docstring_tokens: construct ( tuple : ( long long long long ) | ( long long long long long ))) : ElGamalobj Construct an ElGamal key from a 3 - or 4 - tuple of numbers .
function: def construct(tuple):
      """construct(tuple:(long,long,long,long)|(long,long,long,long,long)))
               : ElGamalobj
      Construct an ElGamal key from a 3- or 4-tuple of numbers.
      """
  
      obj=ElGamalobj()
      if len(tuple) not in [3,4]:
          raise error, 'argument for construct() wrong length'
      for i in range(len(tuple)):
          field = obj.keydata[i]
          setattr(obj, field, tuple[i])
      return obj
function_tokens: def construct ( tuple ) : obj = ElGamalobj ( ) if len ( tuple ) not in [ 3 , 4 ] : raise error , 'argument for construct() wrong length' for i in range ( len ( tuple ) ) : field = obj . keydata [ i ] setattr ( obj , field , tuple [ i ] ) return obj