Pybindgen auto-generate docstring
Hello here,
I am using pybindgen extensively, and I love it so far. My only gripe is that although I have defined everything by hand (no pygccxml here) the generated library contains no docstrings at all. Of course, I did not provide one in my definitions but in my opinion, these docstrings should contain at least the function signature, in a way that is displayable by autocompletion tools, such as python-jedi.
I implemented my changes quickly in my local version of pybindgen, here is a small (albeit dirty) diff :
function.py:
64d63
< self.raw_parameters = parameters #Keep the raw parameter for easy access, probably useless
270,277c269
< (self.docstring is None and self.generate_
<
< def generate_
< return '"'+name+
---
> (self.docstring is None and "NULL" or ('"'+self.
Do you think this is a desirable feature of pybindgen ? I think it could be extended to be prepended to every user-supplied docstring, and it could be optional.
Just as an example, difference using this project : https:/
Without my modification : http://
With my modification : http://
Thanks a lot for the awesome project !
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- PyBindGen Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Braud for more information if necessary.