MCPcopy
hub / github.com/django/django / function

Function function

django/contrib/gis/gdal/libgdal.py:136–140  ·  view source on GitHub ↗
(name, args, restype)

Source from the content-addressed store, hash-verified

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

Callers 9

_queryMethod · 0.85
libgdal.pyFile · 0.85
lazy_model_operationMethod · 0.85
do_pending_operationsMethod · 0.85
test_bad_queryMethod · 0.85
test_not_foundMethod · 0.85
check_outputMethod · 0.85
test_aggregate_arityMethod · 0.85

Calls 1

std_callFunction · 0.85

Tested by 5

test_bad_queryMethod · 0.68
test_not_foundMethod · 0.68
check_outputMethod · 0.68
test_aggregate_arityMethod · 0.68