docstring for CppClass

Asked by kun

Hi,

I was wondering if we can set docstring in a cppclass easily.
I am using the 0.10 code. I think the docstring is only set
in the generate method, which means, if I call the root module's
generate method, there will be no docstring set for individual classes.
But for methods and functions, the constructor accept a docstring
parameter, which makes adding docstring a lot easier. Why
the cppclass doesn't accept a docstring in construction to make
things consistent?

I am not sure if I missed something here. If so please let me know.

Kun

Question information

Language:
English Edit question
Status:
Answered
For:
PyBindGen Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gustavo Carneiro (gjc) said :
#1

I have no answer to the "why not", it just never got done.

I committed the necessary changes now to the repository, see:

    http://bazaar.launchpad.net/~gjc/pybindgen/trunk/revision/638

Can you help with this problem?

Provide an answer of your own, or ask kun for more information if necessary.

To post a message you must log in.