def WrapEnum(ob, resultCLSID=None):
 if (type(ob) != pythoncom.TypeIIDs[pythoncom.IID_IEnumVARIANT]):
  ob = ob.QueryInterface(pythoncom.IID_IEnumVARIANT)
 return EnumVARIANT(ob, resultCLSID)

def WrapEnum ( ob , resultCLSID = None ) : if ( type ( ob ) != pythoncom . TypeIIDs [ pythoncom . IID_IEnumVARIANT ] ) : ob = ob . QueryInterface ( pythoncom . IID_IEnumVARIANT ) return EnumVARIANT ( ob , resultCLSID )
wrap an object in a variant enumerator .