def binary_predicate(func, *args):
 argtypes = [GEOM_PTR, GEOM_PTR]
 if args:
  argtypes += args
 func.argtypes = argtypes
 func.restype = c_char
 func.errcheck = check_predicate
 return func

def binary_predicate ( func , * args ) : argtypes = [ GEOM_PTR , GEOM_PTR ] if args : argtypes += args func . argtypes = argtypes func . restype = c_char func . errcheck = check_predicate return func
for geos binary predicate functions .