Currently, the add-function tag does not allow to name variables.
Shiboken generates them with the names arg_1, arg_2, and so on.
Usually, that's not a problem, but when a new function is added, which includes a name parameter, for example: function(int, str, option=nullptr) one cannot refer to it as option, but arg__3.
The following snippet is invalid:
because then shiboken complains that the type "PyTypeObject*type" doesn't exist.
The option to include this function is to drop the name:
Then the generated code becomes:
And for that, one can see that the name of this named parameter will be arg__3
and executing something like that using value(1, 3.4, arg__3=list) is really not the proper expected result.
|For Gerrit Dashboard: PYSIDE-1017|
|263976,1||Remove space from custom type names||5.12||pyside/pyside-setup||Status: ABANDONED||0||0|
|263977,5||shiboken: Enable specifying names for a parameters of added functions||5.12||pyside/pyside-setup||Status: MERGED||+2||0|