def is_cffi_func(obj):
 try:
  return (ffi.typeof(obj).kind == 'function')
 except TypeError:
  try:
   return (obj in _ool_func_types)
  except:
   return False

def is_cffi_func ( obj ) : try : return ( ffi . typeof ( obj ) . kind == 'function' ) except TypeError : try : return ( obj in _ool_func_types ) except : return False
check whether the obj is a cffi function .