def bin_constructor(func):
 func.argtypes = [c_char_p, c_size_t]
 func.restype = GEOM_PTR
 func.errcheck = check_geom
 return func

def bin_constructor ( func ) : func . argtypes = [ c_char_p , c_size_t ] func . restype = GEOM_PTR func . errcheck = check_geom return func
generates a prototype for binary construction geos routines .