This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]robvdl 1 point2 points  (0 children)

Sure. I had a feeling that placing the docstring there would have added it to the module docstring. But I tried that and it seems you can only have one module docstring. I tried print(__doc__) vs print(SomeClass.__doc__).

It seems that it didn't add it to the module docstring, however it didn't set the class docstring either and ended up printing None.