CStringParam does not use `default_value'

Asked by Lincoln de Sousa

In typehandlers.inttype.IntParam, the convert_python_to_c() method uses the `default_value' attribute to decide if a default value will be passed to the var that will read an argument and to set the correct `optional' flag in parse_params.add_parameter().

Is there any chance to make CSringParam do the same? I've changed it in my working copy and nothing seemed to stop to work. I have to run all the tests before making sure it will not break anything and then I'll format a patch with that change if it helps.

Thank you!

Question information

Language:
English Edit question
Status:
Solved
For:
PyBindGen Edit question
Assignee:
No assignee Edit question
Solved by:
Gustavo Carneiro
Solved:
Last query:
Last reply:
Revision history for this message
Best Gustavo Carneiro (gjc) said :
#1
Revision history for this message
Lincoln de Sousa (lincoln-minaslivre) said :
#2

Thanks Gustavo Carneiro, that solved my question.