def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
python类Exception()的实例源码
def __init__(self, resource_filename, model_str):
this = _snowboydetect.new_SnowboyDetect(resource_filename, model_str)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def __init__(self, nelements: 'size_t'):
this = _YASHE.new_intArray(nelements)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self, *args):
this = _YASHE.new_ciphertext(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self, *args):
this = _YASHE.new_secret_key(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self, *args):
this = _YASHE.new_public_key(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self):
this = _YASHE.new_key_gen()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self, *args):
this = _YASHE.new_pari_GEN(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self):
this = _YASHE.new_parameters()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def __init__(self, nelements: 'size_t'):
this = _YASHE.new_intArray(nelements)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self, *args):
this = _YASHE.new_secret_key(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self, *args):
this = _YASHE.new_public_key(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self):
this = _YASHE.new_key_pair()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self):
this = _YASHE.new_key_gen()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self, *args):
this = _YASHE.new_pari_GEN(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def __init__(self, nelements: 'size_t'):
this = _YASHE.new_intArray(nelements)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self, *args):
this = _YASHE.new_ciphertext(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self, *args):
this = _YASHE.new_secret_key(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self, *args):
this = _YASHE.new_public_key(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self):
this = _YASHE.new_key_gen()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self, *args):
this = _YASHE.new_pari_GEN(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def __init__(self):
this = _YASHE.new_parameters()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def __init__(self, resource_filename, model_str):
this = _snowboydetect.new_SnowboyDetect(resource_filename, model_str)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def __init__(self, resource_filename, model_str):
this = _snowboydetect.new_SnowboyDetect(resource_filename, model_str)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)