adding a docstring to an instancemethod

jelle jelleferinga at gmail.com
Thu Jul 26 04:28:42 EDT 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.

Thanks,

-jelle




More information about the Python-list mailing list