コード例 #1
0
 def init(self, type, value=None):
     """initializes an object with a specified type and value"""
     if value is not None:
         return init(self.Pairing, type, value)
     return init(self.Pairing, type)
コード例 #2
0
ファイル: pairinggroup.py プロジェクト: SRI-CSL/ENCODERS
    def init(self, type, value=None):
        """initializes an object with a specified type and value""" 
        if value != None:
            return init(self.Pairing, type, value)
#            return self.Pairing.init(type, long(value))
        return init(self.Pairing, type)
コード例 #3
0
ファイル: pairinggroup.py プロジェクト: MichaelONeil/charm
 def init(self, type, value=None):
     if value != None:
         return init(self.Pairing, type, value)
     return init(self.Pairing, type)
コード例 #4
0
ファイル: pairinggroup.py プロジェクト: JeremyXJ/abescheme
    def init(self, type, value=None):
        if value != None:
            return init(self.Pairing, type, value)
#            return self.Pairing.init(type, long(value))
        return init(self.Pairing, type)
コード例 #5
0
ファイル: pairinggroup.py プロジェクト: ztm1992/charm
 def init(self, type, value=None):
     if value != None:
         return init(self.Pairing, type, value)
     return init(self.Pairing, type)
コード例 #6
0
    def init(self, type, value=None):
        """initializes an object with a specified type and value"""
        if value != None:
            return init(self.Pairing, type, value)
#            return self.Pairing.init(type, long(value))
        return init(self.Pairing, type)