def __init__(self, oid_set=None):
super(OIDSet, self).__init__()<EOL>if isinstance(oid_set, ffi.CData) and ffi.typeof(oid_set) == ffi.typeof('<STR_LIT>'):<EOL><INDENT>self._oid_set = ffi.gc(oid_set, _release_OID_set)<EOL><DEDENT>elif oid_set is None:<EOL><INDENT>self._oid_set = ffi.new('<STR_LIT>')<EOL>minor_status = ffi.new('<STR_LIT>')<EOL>try:<EOL><INDENT>retval = C.gss_create_empty_oid_set(minor_status, self._oid_set)<EOL>if GSS_ERROR(retval):<EOL><INDENT>raise _exception_for_status(retval, minor_status[<NUM_LIT:0>])<EOL><DEDENT>self._oid_set = ffi.gc(self._oid_set, _release_OID_set)<EOL><DEDENT>except:<EOL><INDENT>_release_OID_set(self._oid_set)<EOL>raise<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise TypeError("<STR_LIT>" + str(type(oid_set)))<EOL><DEDENT>
Wraps a gss_OID_set. This can be returned from methods like gss_inquire_cred
        where it shouldn't be modified by the caller, since it's immutable.