- closure = _makeClosure(function, callable, argIndex)
+ closure = _makeClosure(function, callable, argIndex)
function.pyobjc_closure = closure
+ function.__metadata__ = lambda: meta
- "_makeClosure(callable, closureFor, [argIndex]) -> closure\n"
+ "_makeClosure(callable, closureFor, [argIndex]) -> closure\n"
"Returns a closure object that can be used to call the function from\n"
"C. This object has no useable interface from Python.\n"
+ return ;
The 3.0 branch is currently highly experimental, don't uses this version!
+* :func:`objc.callbackFor` now also adds a *__metadata__* method to decorated
+ functions. This is primarily to make it easier to test the metadata values.
* The *__typestr__* attribute of opaque pointer types is now a byte string,
in previous versions this was an instance of :class:`str` (this only affects