3 TRANSLATING PARAMETER LISTS
5 The argument-reductions laws of the SWIG bindings something go like
8 - Python functions don't return errors. They throw exceptions.
11 - ...Python functions will return the "other" stuff that the C
12 functions "return" instead. C functions which populate
13 pointers with new data (you know, values that are returned to
14 the caller, but not as "return values") will return those
15 values directly in Python. So:
17 error = foo (object **returned_obj, int blah);
22 returned_obj = foo (blah)
26 - Callback function/baton pairs get reduced to just callback
27 functions, and the benefit you get from batons is gotten
28 instead through Python default arguments:
30 error = foo (callback_t function, void *baton);
35 def function(callback_arg1, ..., userdata1=whatever, ...):