adding a docstring to an instancemethod

jelle jelleferinga at
Thu Jul 26 10:28:42 CEST 2007

> Set the __doc__ on the *function* from which you build the instance method.

Thanks for you reply Gabriel,
Though setting the docstring to the functions wouldn't be an option
for me.
The thing is that I have a

wrappedCppModule.Class.Method I'd like to give a docstring, so there's
no prior function to refer to.



More information about the Python-list mailing list