def __init__(self, AttributeList):
        """
        @type  AttributeList: list of tuple( int, ctypes-compatible object )
        @param AttributeList: List of (Attribute, Value) pairs.
        """
        self.AttributeList = AttributeList
        self.AttributeListBuffer = InitializeProcThreadAttributeList(
                                                            len(AttributeList))
        try:
            for Attribute, Value in AttributeList:
                UpdateProcThreadAttribute(self.AttributeListBuffer,
                                          Attribute, Value)
        except:
            ProcThreadAttributeList.__del__(self)
            raise
def __init__ ( self , AttributeList ) : self . AttributeList = AttributeList self . AttributeListBuffer = InitializeProcThreadAttributeList ( len ( AttributeList ) ) try : for Attribute , Value in AttributeList : UpdateProcThreadAttribute ( self . AttributeListBuffer , Attribute , Value ) except : ProcThreadAttributeList . __del__ ( self ) raise
@type  AttributeList: list of tuple( int, ctypes-compatible object )
        @param AttributeList: List of (Attribute, Value) pairs.