':return: a nice text representation of the extension'

def __str__(self):

    if (_lib.NID_subject_alt_name == self._nid):
        return self._subjectAltNameString()
    bio = _new_mem_buf()
    print_result = _lib.X509V3_EXT_print(bio, self._extension, 0, 0)
    if (not print_result):
        _raise_current_error()
    return _native(_bio_to_string(bio))
