(name, args, restype)
| 134 | |
| 135 | |
| 136 | def function(name, args, restype): |
| 137 | func = std_call(name) |
| 138 | func.argtypes = args |
| 139 | func.restype = restype |
| 140 | return func |
| 141 | |
| 142 | |
| 143 | set_error_handler = function("CPLSetErrorHandler", [CPLErrorHandler], CPLErrorHandler) |