GNOME Bugzilla – Bug 620906
Allow passing None for callbacks which are annotated allow-none
Last modified: 2010-06-14 17:19:07 UTC
* Many callbacks are optional parameters yet we were asserting on Py_None * We now check to see if allow_none is set when setting up callbacks, if it is set and py_function == Py_None, we set the closure to NULL and return * pygi-invoke.c now checks to see if the closure == NULL when setting arguments * if it is NULL there is no reason to set the the destroy notify handler so we skip that too
Created attachment 162975 [details] [review] Allow passing None for callbacks which are annotated allow-none
Review of attachment 162975 [details] [review]: I like it.