def DecodeControlTuples(ldapControlTuples):
 return [knownLDAPControls.get(controlType, LDAPControl)(controlType, criticality, encodedControlValue=encodedControlValue) for (controlType, criticality, encodedControlValue) in (ldapControlTuples or [])]

def DecodeControlTuples ( ldapControlTuples ) : return [ knownLDAPControls . get ( controlType , LDAPControl ) ( controlType , criticality , encodedControlValue = encodedControlValue ) for ( controlType , criticality , encodedControlValue ) in ( ldapControlTuples or [ ] ) ]
return list of readily encoded 3-tuples which can be directly passed to c module _ldap .