(model_ptr)
return m
toPyModel(model_ptr) -> svm_model

	Convert a ctypes POINTER(svm_model) to a Python svm_model
toPyModel(model_ptr) -> svm_model
toPyModel ( model_ptr ) - > svm_model
def toPyModel(model_ptr):
	"""
	toPyModel(model_ptr) -> svm_model

	Convert a ctypes POINTER(svm_model) to a Python svm_model
	"""
	if bool(model_ptr) == False:
		raise ValueError("Null pointer")
	m = model_ptr.contents
	m.__createfrom__ = 'C'
	return m
def toPyModel ( model_ptr ) : if bool ( model_ptr ) == False : raise ValueError ( "Null pointer" ) m = model_ptr . contents m . __createfrom__ = 'C' return m