[Pyobjc-dev] Deprecation warnings turned into BadPrototypeError
Brought to you by:
ronaldoussoren
|
From: Luc H. <lu...@ho...> - 2008-04-14 08:31:15
|
Greetings, Revision 1993 of PyObjC trunk seems to change the "Not all Objective-C arguments are present in the Python argument-list of foo" deprecation warnings to hard BadPrototypeError exceptions, which makes my application to fail on launch because of some decorated methods which use variable arguments and/or keyword arguments. The problem was already discussed here and the diff in pyobjc-core/ Modules/objc/libffi_support.m seems to show that work has been done to better detect false positives. However, the following test in PyObjCFFI_MakeFunctionClosure... else if (stubUserdata->argCount == 0 && haveVarArgs && haveVarKwds) ...should probably be... else if (stubUserdata->argCount == 0 && (haveVarArgs || haveVarKwds)) ...right ? -- Luc Heinrich - lu...@ho... |