def cs_operation(func, ordinate=False, get=False):
 if get:
  func.errcheck = check_cs_get
  dbl_param = POINTER(c_double)
 else:
  func.errcheck = check_cs_op
  dbl_param = c_double
 if ordinate:
  func.argtypes = [CS_PTR, c_uint, c_uint, dbl_param]
 else:
  func.argtypes = [CS_PTR, c_uint, dbl_param]
 func.restype = c_int
 return func

def cs_operation ( func , ordinate = False , get = False ) : if get : func . errcheck = check_cs_get dbl_param = POINTER ( c_double ) else : func . errcheck = check_cs_op dbl_param = c_double if ordinate : func . argtypes = [ CS_PTR , c_uint , c_uint , dbl_param ] else : func . argtypes = [ CS_PTR , c_uint , dbl_param ] func . restype = c_int return func
for coordinate sequence operations .