def EncodeControlTuples(ldapControls):
 if (ldapControls is None):
  return None
 else:
  result = [c.getEncodedTuple() for c in ldapControls]
  return result

def EncodeControlTuples ( ldapControls ) : if ( ldapControls is None ) : return None else : result = [ c . getEncodedTuple ( ) for c in ldapControls ] return result
return list of readily encoded 3-tuples which can be directly passed to c module _ldap .